blitz_api/.env_sample
fusion44 bdeac676c0
feat: add SQLite database support
Preparations for creating a transaction index.

refs #30
2023-04-05 22:11:29 +02:00

145 lines
4.9 KiB
Text

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
db_log_level=WARNING
# database URL
db_url=sqlite+aiosqlite:///blitz_api.sqlite
# 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="username@192.168.1.50"
# Version of the platform. Ignored on platform Raspiblitz
# np_version="v0.5.1beta"