2025-02-16 20:35:21 +01:00
|
|
|
BAPI_JWT_SECRET=please_please_update_me_please
|
|
|
|
|
BAPI_JWT_ALGORITHM=HS256
|
2026-07-03 20:35:34 +02:00
|
|
|
# token lifetime in seconds (3600 = 1 hour)
|
|
|
|
|
BAPI_JWT_EXPIRY_TIME=3600
|
2025-02-16 20:35:21 +01:00
|
|
|
|
|
|
|
|
# Set the ASGI root_path for applications submounted below a given URL path.
|
|
|
|
|
BAPI_ROOT_PATH = "/"
|
2021-07-25 17:24:33 +02:00
|
|
|
|
2022-12-18 20:55:31 +01:00
|
|
|
# the log level
|
|
|
|
|
# values [TRACE, DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICAL]
|
|
|
|
|
# default: INFO
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_LOG_LEVEL=INFO
|
2022-12-18 20:55:31 +01:00
|
|
|
|
|
|
|
|
# the log file, comment or set empty to turn of file logging
|
|
|
|
|
# default: blitz_api.log
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_LOG_FILE=blitz_api.log
|
2021-08-17 18:34:05 +02:00
|
|
|
|
2021-11-28 08:42:52 +01:00
|
|
|
# Enable this if you want to run blitz_gui locally.
|
|
|
|
|
# This will create a file called ~/blitz_api/.cookie with a
|
|
|
|
|
# JWT token.
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_ENABLE_LOCAL_COOKIE_AUTH = false
|
2021-11-28 08:42:52 +01:00
|
|
|
|
2021-12-15 21:11:46 +01:00
|
|
|
# Platform tells the backend on what kind of system it is running on.
|
2022-03-20 17:20:56 +01:00
|
|
|
# Different platforms might use different data sources and might yield
|
2021-12-15 21:11:46 +01:00
|
|
|
# different kinds of data. E.g.: If set to "raspiblitz",then hardware
|
2021-12-25 16:53:42 +01:00
|
|
|
# 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]
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_PLATFORM=raspiblitz
|
2021-12-15 21:11:46 +01:00
|
|
|
|
2022-03-20 17:20:56 +01:00
|
|
|
# Amount of seconds the app will wait until it'll
|
2021-07-25 17:24:33 +02:00
|
|
|
# send another hardware update
|
2021-12-15 21:11:46 +01:00
|
|
|
# only applies when platform=native_python
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_GATHER_HW_INFO_INTERVAL = 2
|
2021-08-02 21:02:55 +02:00
|
|
|
|
2021-07-25 17:24:33 +02:00
|
|
|
# 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
|
2025-02-16 20:35:21 +01:00
|
|
|
# must be less than and not equal to BAPI_GATHER_HW_INFO_INTERVAL
|
2021-12-15 21:11:46 +01:00
|
|
|
# only applies when platform=native_python
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_CPU_USAGE_AVERAGING_PERIOD = 0.5
|
2021-07-25 17:24:33 +02:00
|
|
|
|
2021-08-02 21:02:55 +02:00
|
|
|
# Poll interval in seconds to gather lightning information and push it via SSE
|
2021-12-15 21:11:46 +01:00
|
|
|
# only applies when platform=native_python
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_GATHER_LN_INFO_INTERVAL = 5.0
|
2021-09-20 11:22:50 +02:00
|
|
|
|
2025-02-16 20:35:21 +01:00
|
|
|
# The API can push successful forwards to SSE client. On big nodes
|
2022-01-15 14:27:08 +01:00
|
|
|
# this can cause lots of traffic. Turn this on if updates are required.
|
|
|
|
|
# default: false
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_SSE_NOTIFY_FORWARD_SUCCESSES=false
|
2022-01-15 14:27:08 +01:00
|
|
|
|
2022-03-20 17:20:56 +01:00
|
|
|
# If set to 0 all forward event will be sent instantly, otherwise they'll
|
2022-01-15 14:27:08 +01:00
|
|
|
# be gathered and sent as an array of notifications.
|
2025-02-16 20:35:21 +01:00
|
|
|
# This also affects how often the wallet balance is updated (even if SSE_NOTIFY_FORWARD_SUCCESSES is false)
|
2022-01-15 14:27:08 +01:00
|
|
|
# default: 2.0 seconds
|
|
|
|
|
# minimum: 0.3 seconds
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_FORWARDS_GATHER_INTERVAL=2
|
2022-01-15 14:27:08 +01:00
|
|
|
|
2021-07-12 20:40:14 +02:00
|
|
|
# Redis - uncomment if Redis runs with non standard values (i.e. in Docker etc)
|
2025-04-01 20:42:55 +02:00
|
|
|
# BAPI_REDIS_URL=redis://127.0.0.1:6379/0
|
|
|
|
|
|
2021-07-12 20:40:14 +02:00
|
|
|
|
2022-08-18 20:13:50 +02:00
|
|
|
# mainnet, testnet or regtest
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_NETWORK=testnet
|
|
|
|
|
BAPI_BITCOIND_ADDRESS=192.168.1.18
|
|
|
|
|
# Defaults:
|
|
|
|
|
# MAINNET=8332 (default)
|
|
|
|
|
# TESTNET=18332
|
|
|
|
|
# REGTEST=28332
|
|
|
|
|
BAPI_BITCOIND_PORT_RPC=8332
|
2022-08-18 20:13:50 +02:00
|
|
|
|
2022-04-05 16:40:18 +02:00
|
|
|
# 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.
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_BITCOIND_ZMQ_BLOCK_RPC="hashblock"
|
|
|
|
|
BAPI_BITCOIND_ZMQ_BLOCK_PORT=28332
|
|
|
|
|
BAPI_BITCOIND_USER=raspibolt
|
|
|
|
|
BAPI_BITCOIND_RPC_PW=please_please_update_me_please
|
2021-07-10 17:15:02 +02:00
|
|
|
|
2023-03-26 20:53:50 +02:00
|
|
|
# lnd_grpc, cln_jrpc, cln_grpc, none
|
2022-06-04 14:10:44 +02:00
|
|
|
# Please refer to the documentation for the install procedure
|
|
|
|
|
# for each implementation.
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_LN_NODE=lnd_grpc
|
2022-09-10 07:43:16 +02:00
|
|
|
|
|
|
|
|
# Get hex string via command line: xxd -p -c2000 file.macaroon
|
|
|
|
|
# LND macaroon in HEX format, or a path to the .macaroon file
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_LND_MACAROON="0201036...2211 or /path/to/admin.macaroon"
|
|
|
|
|
BAPI_LND_CERT="2d2d2d2d2d...d2d2d2d0a or /path/to/tls.cert"
|
|
|
|
|
BAPI_LND_GRPC_IP=192.168.1.18
|
|
|
|
|
BAPI_LND_GRPC_PORT=10009
|
2021-12-25 16:53:42 +01:00
|
|
|
|
2023-03-26 20:53:50 +02:00
|
|
|
# cln json rpc - path to the socket file
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_CLN_JRPC_PATH="/mnt/hdd/app-data/.lightning/bitcoin/lightning-rpc"
|
2023-03-26 20:53:50 +02:00
|
|
|
|
2022-09-10 07:43:16 +02:00
|
|
|
# CLN grpc connection data, cert files are in .lightning data folder
|
|
|
|
|
# file contents in HEX format, or a path to the file
|
2025-02-16 20:35:21 +01:00
|
|
|
BAPI_CLN_GRPC_CERT="2d2d2d2d2d...d2d2d2d0a or /path/to/client.pem"
|
|
|
|
|
BAPI_CLN_GRPC_KEY="2d2d2d2d2d...d2d2d2d0a or /path/to/client-key.pem"
|
|
|
|
|
BAPI_CLN_GRPC_CA="2d2d2d2d2d...d2d2d2d0a or /path/to/ca.pem"
|
|
|
|
|
BAPI_CLN_GRPC_IP=127.0.0.1
|
|
|
|
|
BAPI_CLN_GRPC_PORT=9537
|
2022-06-04 14:10:44 +02:00
|
|
|
|
2025-02-16 20:35:21 +01:00
|
|
|
########################
|
|
|
|
|
# RaspiBlitz env varables
|
|
|
|
|
########################
|
|
|
|
|
|
|
|
|
|
# Path to the shell script root folder
|
|
|
|
|
BAPI_RB_SHELL_SCRIPT_PATH="/home/admin"
|
|
|
|
|
|
|
|
|
|
########################
|
|
|
|
|
# native python env varables
|
|
|
|
|
########################
|
|
|
|
|
|
|
|
|
|
# login password for the native_python system implementation
|
|
|
|
|
# ATTN: https://github.com/fusion44/blitz_api/issues/255
|
|
|
|
|
# BAPI_NATIVE_LOGIN_PASSWORD=12345678
|
2021-12-25 16:53:42 +01:00
|
|
|
|
|
|
|
|
# Tor url of api endpoint. Ignored on platform Raspiblitz
|
|
|
|
|
# Defaults to empty string
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_NP_TOR_ADDRESS_API_ENDPOINT="address.onion/api"
|
2021-12-25 16:53:42 +01:00
|
|
|
|
|
|
|
|
# Tor url of the api docs. Ignored on platform Raspiblitz
|
|
|
|
|
# Defaults to empty string
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_NP_TOR_ADDRESS_API_DOCS="address.onion/latest/docs"
|
2021-12-25 16:53:42 +01:00
|
|
|
|
|
|
|
|
# Local LAN url of api endpoint. Ignored on platform Raspiblitz
|
|
|
|
|
# Defaults to empty string
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_NP_LOCAL_ADDRESS_API_DOCS="address.onion/api"
|
2021-12-25 16:53:42 +01:00
|
|
|
|
|
|
|
|
# Local LAN of the api docs. Ignored on platform Raspiblitz
|
|
|
|
|
# Defaults to empty string
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_NP_LOCAL_ADDRESS_API_DOCS="address.onion/latest/docs"
|
2021-12-25 16:53:42 +01:00
|
|
|
|
|
|
|
|
# SSH login address. Ignored on platform Raspiblitz
|
|
|
|
|
# Defaults to empty string
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_NP_SSH_ADDRESS="username@192.168.1.50"
|
2021-12-25 16:53:42 +01:00
|
|
|
|
|
|
|
|
# Version of the platform. Ignored on platform Raspiblitz
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_NP_VERSION ="v0.5.1beta"
|
2023-06-25 08:01:43 +02:00
|
|
|
|
|
|
|
|
# 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
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_REMOTE_DEBUGGING=false
|
2023-06-25 08:01:43 +02:00
|
|
|
|
|
|
|
|
# Defaults to 5678
|
2025-02-16 20:35:21 +01:00
|
|
|
# BAPI_REMOTE_DEBUGGING_PORT=5678
|
2025-04-01 20:42:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Define how often the cache should be considered stale
|
|
|
|
|
BAPI_APP_STATUS_UPDATE_INTERVAL_MIN = 30
|
|
|
|
|
BAPI_CACHE_TTL_SECONDS = 2100
|
|
|
|
|
BAPI_LOCK_TTL_SECONDS = 300
|
2026-07-12 11:30:15 +02:00
|
|
|
|
|
|
|
|
# Include the verbose "report" and/or "trace" fields in error responses.
|
|
|
|
|
# These may contain file paths and stack traces - keep off in production.
|
|
|
|
|
# BAPI_SEND_REPORT=false
|
|
|
|
|
# BAPI_SEND_TRACE=false
|