LNbits beta feedback

This commit is contained in:
Taylor Helsper 2020-06-28 22:35:21 -05:00
parent 1a7447e541
commit 0cd5cd34bf
3 changed files with 29 additions and 28 deletions

View File

@ -9,11 +9,12 @@ After=bitcoind.service lnd.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_lnd.sh
ExecStartPre=/bin/sh -c 'cd /opt/mynode/lnbits && /usr/local/bin/pipenv run flask migrate'
sudo -u bitcoin pipenv run flask migrate || true
Environment=FLASK_ENV=development
WorkingDirectory=/opt/mynode/lnbits
ExecStart=/bin/sh -c 'cd /opt/mynode/lnbits && /usr/local/bin/pipenv run flask run --host 0.0.0.0'
#ExecStart=/bin/sh -c 'cd /opt/mynode/lnbits && python3 /usr/local/bin/pipenv --python 3.7 run gunicorn -b :5000 lnbits:app -k gevent'
User=bitcoin
Group=bitcoin

View File

@ -473,8 +473,8 @@ if [ "$CURRENT" != "$LNBITS_UPGRADE_URL" ]; then
sudo -u bitcoin pipenv --python 3.7 install
sudo -u bitcoin pipenv run pip install python-dotenv
sudo -u bitcoin pipenv run pip install -r requirements.txt
sudo -u bitcoin pipenv run pip install lnd-grpc
sudo -u bitcoin pipenv run flask migrate
#sudo -u bitcoin pipenv run pip install lnd-grpc # Using REST now (this install takes a LONG time)
sudo -u bitcoin pipenv run flask migrate || true
mkdir -p /home/bitcoin/.mynode/
chown -R bitcoin:bitcoin /home/bitcoin/.mynode/

View File

@ -10,37 +10,37 @@ LNBITS_FORCE_HTTPS=0
LNBITS_SERVICE_FEE="0.0"
# Choose from LNPayWallet, OpenNodeWallet, LntxbotWallet, LndWallet, CLightningWallet, LnbitsWallet
LNBITS_BACKEND_WALLET_CLASS=LndWallet
LNBITS_BACKEND_WALLET_CLASS=LndRestWallet
CLIGHTNING_RPC="/home/bob/.lightning/bitcoin/lightning-rpc"
#CLIGHTNING_RPC="/home/bob/.lightning/bitcoin/lightning-rpc"
LNBITS_ENDPOINT=127.0.0.1:5000
LNBITS_INVOICE_MACAROON=LNBITS_INVOICE_MACAROON
LNBITS_ADMIN_MACAROON=LNBITS_ADMIN_MACAROON
#LNBITS_ENDPOINT=127.0.0.1:5000
#LNBITS_INVOICE_MACAROON=LNBITS_INVOICE_MACAROON
#LNBITS_ADMIN_MACAROON=LNBITS_ADMIN_MACAROON
LND_GRPC_ENDPOINT=127.0.0.1
LND_GRPC_PORT=10009
LND_CERT="/mnt/hdd/mynode/lnd/tls.cert"
LND_ADMIN_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon"
LND_INVOICE_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/invoice.macaroon"
LND_READ_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/read.macaroon"
#LND_GRPC_ENDPOINT=127.0.0.1
#LND_GRPC_PORT=10009
#LND_CERT="/mnt/hdd/mynode/lnd/tls.cert"
#LND_ADMIN_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon"
#LND_INVOICE_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/invoice.macaroon"
#LND_READ_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/read.macaroon"
LND_REST_ENDPOINT=https://localhost:10080/
LND_REST_CERT="/mnt/hdd/mynode/lnd/tls.cert"
LND_REST_ADMIN_MACAROON="HEXSTRING"
LND_REST_INVOICE_MACAROON="HEXSTRING"
LND_REST_READ_MACAROON="HEXSTRING"
LND_REST_ADMIN_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon"
LND_REST_INVOICE_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/invoice.macaroon"
LND_REST_READ_MACAROON="/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/read.macaroon"
LNPAY_API_ENDPOINT=https://lnpay.co/v1/
LNPAY_API_KEY=LNPAY_API_KEY
LNPAY_ADMIN_KEY=LNPAY_ADMIN_KEY
LNPAY_INVOICE_KEY=LNPAY_INVOICE_KEY
LNPAY_READ_KEY=LNPAY_READ_KEY
#LNPAY_API_ENDPOINT=https://lnpay.co/v1/
#LNPAY_API_KEY=LNPAY_API_KEY
#LNPAY_ADMIN_KEY=LNPAY_ADMIN_KEY
#LNPAY_INVOICE_KEY=LNPAY_INVOICE_KEY
#LNPAY_READ_KEY=LNPAY_READ_KEY
LNTXBOT_API_ENDPOINT=https://lntxbot.bigsun.xyz/
LNTXBOT_ADMIN_KEY=LNTXBOT_ADMIN_KEY
LNTXBOT_INVOICE_KEY=LNTXBOT_INVOICE_KEY
#LNTXBOT_API_ENDPOINT=https://lntxbot.bigsun.xyz/
#LNTXBOT_ADMIN_KEY=LNTXBOT_ADMIN_KEY
#LNTXBOT_INVOICE_KEY=LNTXBOT_INVOICE_KEY
OPENNODE_API_ENDPOINT=https://api.opennode.com/
OPENNODE_ADMIN_KEY=OPENNODE_ADMIN_KEY
OPENNODE_INVOICE_KEY=OPENNODE_INVOICE_KEY
#OPENNODE_API_ENDPOINT=https://api.opennode.com/
#OPENNODE_ADMIN_KEY=OPENNODE_ADMIN_KEY
#OPENNODE_INVOICE_KEY=OPENNODE_INVOICE_KEY