2020-09-15 02:28:10 +00:00
|
|
|
HOST=127.0.0.1
|
|
|
|
PORT=5000
|
2019-12-14 09:13:27 +00:00
|
|
|
|
2022-10-26 11:07:34 +00:00
|
|
|
# uvicorn variable, allow https behind a proxy
|
|
|
|
# FORWARDED_ALLOW_IPS="*"
|
|
|
|
|
2022-07-15 17:54:12 +00:00
|
|
|
DEBUG=false
|
2022-07-07 12:30:16 +00:00
|
|
|
|
2022-11-24 14:43:39 +00:00
|
|
|
# Allow users and admins by user IDs (comma separated list)
|
2020-09-07 14:05:50 +00:00
|
|
|
LNBITS_ALLOWED_USERS=""
|
2022-09-26 14:54:19 +00:00
|
|
|
LNBITS_ADMIN_USERS=""
|
|
|
|
# Extensions only admin can access
|
2022-12-01 11:37:08 +00:00
|
|
|
LNBITS_ADMIN_EXTENSIONS="ngrok, admin"
|
2023-01-04 09:41:56 +00:00
|
|
|
|
2022-09-26 14:54:19 +00:00
|
|
|
# Enable Admin GUI, available for the first user in LNBITS_ADMIN_USERS if available
|
2023-01-04 09:41:56 +00:00
|
|
|
# Warning: Enabling this will make LNbits ignore this configuration file. Your settings will
|
|
|
|
# be stored in your database and you will be able to change them only through the Admin UI.
|
|
|
|
# Disable this to make LNbits use this config file again.
|
2022-12-01 11:37:08 +00:00
|
|
|
LNBITS_ADMIN_UI=false
|
2022-03-07 05:03:32 +00:00
|
|
|
|
2020-03-08 22:00:41 +00:00
|
|
|
LNBITS_DEFAULT_WALLET_NAME="LNbits wallet"
|
2021-06-22 02:22:52 +00:00
|
|
|
|
2022-11-20 17:29:07 +00:00
|
|
|
# Ad space description
|
2022-11-20 17:41:57 +00:00
|
|
|
# LNBITS_AD_SPACE_TITLE="Supported by"
|
2022-11-20 17:29:07 +00:00
|
|
|
# csv ad space, format "<url>;<img-light>;<img-dark>, <url>;<img-light>;<img-dark>", extensions can choose to honor
|
2022-12-01 22:16:55 +00:00
|
|
|
# LNBITS_AD_SPACE="https://shop.lnbits.com/;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-light.png;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-dark.png"
|
2022-09-23 08:02:23 +00:00
|
|
|
|
|
|
|
# Hides wallet api, extensions can choose to honor
|
2022-03-07 05:03:32 +00:00
|
|
|
LNBITS_HIDE_API=false
|
2022-02-23 13:51:30 +00:00
|
|
|
|
2022-02-07 20:48:48 +00:00
|
|
|
# Disable extensions for all users, use "all" to disable all extensions
|
|
|
|
LNBITS_DISABLED_EXTENSIONS="amilk"
|
2023-01-18 15:19:45 +00:00
|
|
|
# LNBITS_EXTENSIONS_MANIFESTS="https://raw.githubusercontent.com/lnbits/lnbits-extensions/main/extensions.json,https://raw.githubusercontent.com/lnbits/lnbits-extensions/main/extensions-trial.json"
|
|
|
|
# GitHub has rate-limits for its APIs. The limit can be increased specifying a GITHUB_TOKEN
|
|
|
|
# LNBITS_EXT_GITHUB_TOKEN=github_pat_xxxxxxxxxxxxxxxxxx
|
2022-02-07 20:48:48 +00:00
|
|
|
|
2021-07-02 22:10:57 +00:00
|
|
|
# Database: to use SQLite, specify LNBITS_DATA_FOLDER
|
|
|
|
# to use PostgreSQL, specify LNBITS_DATABASE_URL=postgres://...
|
|
|
|
# to use CockroachDB, specify LNBITS_DATABASE_URL=cockroachdb://...
|
|
|
|
# for both PostgreSQL and CockroachDB, you'll need to install
|
|
|
|
# psycopg2 as an additional dependency
|
2021-03-19 11:27:41 +00:00
|
|
|
LNBITS_DATA_FOLDER="./data"
|
2021-07-02 22:10:57 +00:00
|
|
|
# LNBITS_DATABASE_URL="postgres://user:password@host:port/databasename"
|
2021-06-22 02:22:52 +00:00
|
|
|
|
2020-09-15 20:19:11 +00:00
|
|
|
LNBITS_FORCE_HTTPS=true
|
2020-04-21 13:44:02 +00:00
|
|
|
LNBITS_SERVICE_FEE="0.0"
|
2022-09-23 08:02:23 +00:00
|
|
|
# value in millisats
|
|
|
|
LNBITS_RESERVE_FEE_MIN=2000
|
|
|
|
# value in percent
|
|
|
|
LNBITS_RESERVE_FEE_PERCENT=1.0
|
2020-03-08 22:00:41 +00:00
|
|
|
|
2021-06-28 21:57:23 +00:00
|
|
|
# Change theme
|
2021-07-02 11:31:05 +00:00
|
|
|
LNBITS_SITE_TITLE="LNbits"
|
|
|
|
LNBITS_SITE_TAGLINE="free and open-source lightning wallet"
|
|
|
|
LNBITS_SITE_DESCRIPTION="Some description about your service, will display if title is not 'LNbits'"
|
2022-10-02 15:45:16 +00:00
|
|
|
# Choose from bitcoin, mint, flamingo, freedom, salvador, autumn, monochrome, classic
|
|
|
|
LNBITS_THEME_OPTIONS="classic, bitcoin, flamingo, freedom, mint, autumn, monochrome, salvador"
|
2022-06-08 14:23:36 +00:00
|
|
|
# LNBITS_CUSTOM_LOGO="https://lnbits.com/assets/images/logo/logo.svg"
|
2021-06-28 21:57:23 +00:00
|
|
|
|
2023-01-14 11:31:00 +00:00
|
|
|
# Choose from LNPayWallet, OpenNodeWallet, LntxbotWallet, ClicheWallet,
|
|
|
|
# LndWallet, LndRestWallet, CoreLightningWallet, EclairWallet,
|
|
|
|
# LnTipsWallet, LNbitsWallet, SparkWallet, FakeWallet,
|
2022-08-01 07:58:21 +00:00
|
|
|
LNBITS_BACKEND_WALLET_CLASS=VoidWallet
|
2020-10-02 17:53:55 +00:00
|
|
|
# VoidWallet is just a fallback that works without any actual Lightning capabilities,
|
|
|
|
# just so you can see the UI before dealing with this file.
|
2020-04-16 15:10:53 +00:00
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# Set one of these blocks depending on the wallet kind you chose above:
|
2022-07-31 22:46:42 +00:00
|
|
|
|
2022-07-31 22:51:57 +00:00
|
|
|
# ClicheWallet
|
|
|
|
CLICHE_ENDPOINT=ws://127.0.0.1:12000
|
2022-07-31 22:46:42 +00:00
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# SparkWallet
|
|
|
|
SPARK_URL=http://localhost:9737/rpc
|
|
|
|
SPARK_TOKEN=myaccesstoken
|
|
|
|
|
2022-08-01 14:41:50 +00:00
|
|
|
# CoreLightningWallet
|
|
|
|
CORELIGHTNING_RPC="/home/bob/.lightning/bitcoin/lightning-rpc"
|
2020-04-16 15:10:53 +00:00
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# LnbitsWallet
|
2022-01-14 09:43:30 +00:00
|
|
|
LNBITS_ENDPOINT=https://legend.lnbits.com
|
2020-10-08 19:03:18 +00:00
|
|
|
LNBITS_KEY=LNBITS_ADMIN_KEY
|
2020-03-31 17:05:25 +00:00
|
|
|
|
2023-01-14 11:31:00 +00:00
|
|
|
# LndWallet
|
|
|
|
LND_GRPC_ENDPOINT=127.0.0.1
|
|
|
|
LND_GRPC_PORT=10009
|
|
|
|
LND_GRPC_CERT="/home/bob/.config/Zap/lnd/bitcoin/mainnet/wallet-1/data/chain/bitcoin/mainnet/tls.cert"
|
|
|
|
LND_GRPC_MACAROON="/home/bob/.config/Zap/lnd/bitcoin/mainnet/wallet-1/data/chain/bitcoin/mainnet/admin.macaroon or HEXSTRING"
|
|
|
|
# To use an AES-encrypted macaroon, set
|
|
|
|
# LND_GRPC_MACAROON="eNcRyPtEdMaCaRoOn"
|
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# LndRestWallet
|
2020-10-03 20:27:55 +00:00
|
|
|
LND_REST_ENDPOINT=https://127.0.0.1:8080/
|
2020-04-25 21:39:30 +00:00
|
|
|
LND_REST_CERT="/home/bob/.config/Zap/lnd/bitcoin/mainnet/wallet-1/data/chain/bitcoin/mainnet/tls.cert"
|
2021-07-07 10:06:11 +00:00
|
|
|
LND_REST_MACAROON="/home/bob/.config/Zap/lnd/bitcoin/mainnet/wallet-1/data/chain/bitcoin/mainnet/admin.macaroon or HEXSTRING"
|
2022-03-07 05:03:32 +00:00
|
|
|
# To use an AES-encrypted macaroon, set
|
2022-02-14 16:54:05 +00:00
|
|
|
# LND_REST_MACAROON_ENCRYPTED="eNcRyPtEdMaCaRoOn"
|
2020-04-25 21:39:30 +00:00
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# LNPayWallet
|
2021-04-11 20:06:39 +00:00
|
|
|
LNPAY_API_ENDPOINT=https://api.lnpay.co/v1/
|
2021-06-04 18:24:14 +00:00
|
|
|
# Secret API Key under developers tab
|
2020-04-16 15:10:53 +00:00
|
|
|
LNPAY_API_KEY=LNPAY_API_KEY
|
2021-06-04 18:24:14 +00:00
|
|
|
# Wallet Admin in Wallet Access Keys
|
2020-10-08 19:03:18 +00:00
|
|
|
LNPAY_WALLET_KEY=LNPAY_ADMIN_KEY
|
2020-04-03 10:24:49 +00:00
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# LntxbotWallet
|
2021-11-12 06:05:59 +00:00
|
|
|
LNTXBOT_API_ENDPOINT=https://lntxbot.com/
|
2020-10-08 19:03:18 +00:00
|
|
|
LNTXBOT_KEY=LNTXBOT_ADMIN_KEY
|
2019-12-18 13:44:58 +00:00
|
|
|
|
2020-10-02 17:53:55 +00:00
|
|
|
# OpenNodeWallet
|
2020-01-12 00:46:09 +00:00
|
|
|
OPENNODE_API_ENDPOINT=https://api.opennode.com/
|
2020-10-08 19:03:18 +00:00
|
|
|
OPENNODE_KEY=OPENNODE_ADMIN_KEY
|
2022-01-31 11:07:29 +00:00
|
|
|
|
|
|
|
# FakeWallet
|
2022-02-03 12:52:51 +00:00
|
|
|
FAKE_WALLET_SECRET="ToTheMoon1"
|
2022-05-05 14:55:01 +00:00
|
|
|
LNBITS_DENOMINATION=sats
|
|
|
|
|
|
|
|
# EclairWallet
|
|
|
|
ECLAIR_URL=http://127.0.0.1:8283
|
2022-10-02 15:45:16 +00:00
|
|
|
ECLAIR_PASS=eclairpw
|
2022-10-10 14:12:06 +00:00
|
|
|
|
|
|
|
# LnTipsWallet
|
|
|
|
# Enter /api in LightningTipBot to get your key
|
|
|
|
LNTIPS_API_KEY=LNTIPS_ADMIN_KEY
|
|
|
|
LNTIPS_API_ENDPOINT=https://ln.tips
|
2022-11-30 15:24:13 +00:00
|
|
|
|
|
|
|
# Cashu Mint
|
2022-12-01 11:37:08 +00:00
|
|
|
# Use a long-enough random (!) private key.
|
2022-11-30 15:24:13 +00:00
|
|
|
# Once set, you cannot change this key as for now.
|
|
|
|
CASHU_PRIVATE_KEY="SuperSecretPrivateKey"
|