-
Notifications
You must be signed in to change notification settings - Fork 18
/
.env_sample
152 lines (124 loc) · 5.1 KB
/
.env_sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
secret=please_please_update_me_please
algorithm=HS256
# expiry time in milliseconds (3600000 = 1 hour)
jwt_expiry_time=3600000
# the log level
# values [TRACE, DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICAL]
# default: INFO
log_level=INFO
# the log file, comment or set empty to turn of file logging
# default: blitz_api.log
# log_file=blitz_api.log
# login password
login_password=12345678
# Enable this if you want to run blitz_gui locally.
# This will create a file called ~/blitz_api/.cookie with a
# JWT token.
# enable_local_cookie_auth = false
# Platform tells the backend on what kind of system it is running on.
# Different platforms might use different data sources and might yield
# different kinds of data. E.g.: If set to "raspiblitz",then hardware
# information will be fetched from Redis instead of the native python implementation.
# In case of native_python set other optional config vars np_* further below.
# supported values: [raspiblitz, native_python]
# platform=raspiblitz
# Amount of seconds the app will wait until it'll
# send another hardware update
# only applies when platform=native_python
gather_hw_info_interval = 2
# Amount of seconds the app will gather CPU usage data for each update
# The resulting CPU usage is averaged over this period of time.
# To get realistic results at least 0.1 seconds is recommended
# must be less than and not equal to gather_hw_info_interval
# only applies when platform=native_python
cpu_usage_averaging_period = 0.5
# Poll interval in seconds to gather lightning information and push it via SSE
# only applies when platform=native_python
gather_ln_info_interval = 5.0
# Path to the shell script root folder
shell_script_path = /home/admin
# The API can push successfull forwards to SSE client. On big nodes
# this can cause lots of traffic. Turn this on if updates are required.
# default: false
# sse_notify_forward_successes=false
# If set to 0 all forward event will be sent instantly, otherwise they'll
# be gathered and sent as an array of notifications.
# This also affects how often the wallet balance is updated (even if sse_notify_forward_successes is false)
# default: 2.0 seconds
# minimum: 0.3 seconds
# forwards_gather_interval=2
# Redis - uncomment if Redis runs with non standard values (i.e. in Docker etc)
# redis_host=127.0.0.1
# redis_port=6379
# redis_db=0
# leave commented if no password is used
# redis_password=my_password
# mainnet, testnet or regtest
network=testnet
bitcoind_ip_mainnet=192.168.1.18
bitcoind_ip_testnet=192.168.1.18
bitcoind_ip_regtest=192.168.1.18
bitcoind_port_rpc_mainnet=8332
bitcoind_port_rpc_testnet=18332
bitcoind_port_rpc_regtest=28332
# The API can either hashblock OR rawblock to be notified of new blocks.
# Hashblock is a bit faster, so it should be used if possible.
bitcoind_zmq_block_rpc="hashblock"
bitcoind_zmq_block_port_mainnet=28332
bitcoind_zmq_block_port_testnet=28332
bitcoind_zmq_block_port_regtest=28332
bitcoind_user=raspibolt
bitcoind_pw=please_please_update_me_please
# lnd_grpc, cln_jrpc, cln_grpc, none
# Please refer to the documentation for the install procedure
# for each implementation.
ln_node=lnd_grpc
# Get hex string via command line: xxd -p -c2000 file.macaroon
# LND macaroon in HEX format, or a path to the .macaroon file
lnd_macaroon="0201036...2211 or /path/to/admin.macaroon"
lnd_cert="2d2d2d2d2d...d2d2d2d0a or /path/to/tls.cert"
lnd_grpc_ip=192.168.1.18
lnd_grpc_port=10009
lnd_rest_port=8080
# cln json rpc - path to the socket file
cln_jrpc_path="/mnt/hdd/app-data/.lightning/bitcoin/lightning-rpc"
# CLN grpc connection data, cert files are in .lightning data folder
# file contents in HEX format, or a path to the file
cln_grpc_cert="2d2d2d2d2d...d2d2d2d0a or /path/to/client.pem"
cln_grpc_key="2d2d2d2d2d...d2d2d2d0a or /path/to/client-key.pem"
cln_grpc_ca="2d2d2d2d2d...d2d2d2d0a or /path/to/ca.pem"
cln_grpc_ip=127.0.0.1
cln_grpc_port=9537
# Tor url of this system. Ignored on platform Raspiblitz.
# Defaults to empty string
# np_tor_address=""
# Tor url of api endpoint. Ignored on platform Raspiblitz
# Defaults to empty string
# np_tor_address_api_endpoint="address.onion/api"
# Tor url of the api docs. Ignored on platform Raspiblitz
# Defaults to empty string
# np_tor_address_api_docs="address.onion/latest/docs"
# Local LAN IP. Ignored on platform Raspiblitz
# Defaults to empty string
# np_local_ip="192.168.1.50"
# Local LAN url of api endpoint. Ignored on platform Raspiblitz
# Defaults to empty string
# np_local_address_api_endpoint="address.onion/api"
# Local LAN of the api docs. Ignored on platform Raspiblitz
# Defaults to empty string
# np_local_address_api_docs="address.onion/latest/docs"
# SSH login address. Ignored on platform Raspiblitz
# Defaults to empty string
# np_ssh_address="[email protected]"
# Version of the platform. Ignored on platform Raspiblitz
# np_version="v0.5.1beta"
# Enable remote debugging for the server.
#
# !!! Only enable this on development machines. !!!
#
# Note the package debugpy must be installed manually, if set to True
# More info: https://github.com/fusion44/blitz_api/issues/206
# Defaults to false
# remote_debugging=false
# Defaults to 5678
# remote_debugging_port=5678