mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-20 12:57:23 +02:00
Raspiblitz and native-python implementations should work. Only feature still missing is system health related stuff. refs #47
98 lines
No EOL
3.1 KiB
Text
98 lines
No EOL
3.1 KiB
Text
secret=please_please_update_me_please
|
|
algorithm=HS256
|
|
# expiry time in seconds
|
|
jwt_expiry_time=300
|
|
|
|
# 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
|
|
|
|
# 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 or testnet
|
|
network=testnet
|
|
bitcoind_ip_mainnet=192.168.1.18
|
|
bitcoind_ip_testnet=192.168.1.18
|
|
bitcoind_port_rpc_mainnet=8332
|
|
bitcoind_port_rpc_testnet=18332
|
|
bitcoind_port_zmq_hashblock_mainnet=28332
|
|
bitcoind_port_zmq_hashblock_testnet=28332
|
|
bitcoind_user=raspibolt
|
|
bitcoind_pw=please_please_update_me_please
|
|
|
|
# lnd or clightning (clightning is not yet implemented!)
|
|
ln_node=lnd
|
|
# LND macaroon in HEX format
|
|
lnd_macaroon=0201036...2211
|
|
# LND certificate in HEX format
|
|
lnd_cert="2d2d2d2d2d...d2d2d2d0a"
|
|
lnd_grpc_ip=192.168.1.18
|
|
lnd_grpc_port=10009
|
|
lnd_rest_port=8080
|
|
|
|
# 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="username@192.168.1.50"
|
|
|
|
# Version of the platform. Ignored on platform Raspiblitz
|
|
# np_version="v0.5.0beta" |