mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Dev testnet lnd auto unlock
This commit is contained in:
parent
96be0d8f80
commit
7284fb3480
19
.env-sample
19
.env-sample
@ -1,10 +1,17 @@
|
|||||||
# base64 ~/.lnd/tls.cert | tr -d '\n'
|
# LND directory to read TLS cert and macaroon
|
||||||
LND_CERT_BASE64=''
|
LND_DIR='/lnd/'
|
||||||
# base64 ~/.lnd/data/chain/bitcoin/testnet/admin.macaroon | tr -d '\n'
|
MACAROON_PATH='data/chain/bitcoin/testnet/admin.macaroon'
|
||||||
LND_MACAROON_BASE64=''
|
|
||||||
LND_GRPC_HOST='127.0.0.1:10009'
|
|
||||||
|
|
||||||
REDIS_URL=''
|
# LND directory can not be specified, instead cert and macaroon can be provided as base64 strings
|
||||||
|
# base64 ~/.lnd/tls.cert | tr -d '\n'
|
||||||
|
LND_CERT_BASE64='LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNLVENDQWRDZ0F3SUJBZ0lRQ0VoeGpPZXY1bGQyVFNPTXhKalFvekFLQmdncWhrak9QUVFEQWpBNE1SOHcKSFFZRFZRUUtFeFpzYm1RZ1lYVjBiMmRsYm1WeVlYUmxaQ0JqWlhKME1SVXdFd1lEVlFRREV3d3dNakJtTVRnMQpZelkwTnpVd0hoY05Nakl3TWpBNE1UWXhOalV3V2hjTk1qTXdOREExTVRZeE5qVXdXakE0TVI4d0hRWURWUVFLCkV4WnNibVFnWVhWMGIyZGxibVZ5WVhSbFpDQmpaWEowTVJVd0V3WURWUVFERXd3d01qQm1NVGcxWXpZME56VXcKV1RBVEJnY3Foa2pPUFFJQkJnZ3Foa2pPUFFNQkJ3TkNBQVNJVWdkcVMrWFZKL3EzY0JZeWd6ZDc2endaanlmdQpLK3BzcWNYVkFyeGZjU2NXQ25jbXliNGRaMy9Lc3lLWlRaamlySDE3aEY0OGtIMlp5clRZSW9hZG80RzdNSUc0Ck1BNEdBMVVkRHdFQi93UUVBd0lDcERBVEJnTlZIU1VFRERBS0JnZ3JCZ0VGQlFjREFUQVBCZ05WSFJNQkFmOEUKQlRBREFRSC9NQjBHQTFVZERnUVdCQlEwWUJjZXdsd1BqYTJPRXFyTGxzZnJscEswUFRCaEJnTlZIUkVFV2pCWQpnZ3d3TWpCbU1UZzFZelkwTnpXQ0NXeHZZMkZzYUc5emRJSUVkVzVwZUlJS2RXNXBlSEJoWTJ0bGRJSUhZblZtClkyOXVib2NFZndBQUFZY1FBQUFBQUFBQUFBQUFBQUFBQUFBQUFZY0V3S2dRQW9jRUFBQUFBREFLQmdncWhrak8KUFFRREFnTkhBREJFQWlBd0dMY05qNXVZSkVwanhYR05OUnNFSzAwWmlSUUh2Qm50NHp6M0htWHBiZ0lnSWtvUQo3cHFvNGdWNGhiczdrSmt1bnk2bkxlNVg0ZzgxYjJQOW52ZnZ2bkk9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K'
|
||||||
|
# base64 ~/.lnd/data/chain/bitcoin/testnet/admin.macaroon | tr -d '\n'
|
||||||
|
LND_MACAROON_BASE64='AgEDbG5kAvgBAwoQsyI+PK+fyb7F2UyTeZ4seRIBMBoWCgdhZGRyZXNzEgRyZWFkEgV3cml0ZRoTCgRpbmZvEgRyZWFkEgV3cml0ZRoXCghpbnZvaWNlcxIEcmVhZBIFd3JpdGUaIQoIbWFjYXJvb24SCGdlbmVyYXRlEgRyZWFkEgV3cml0ZRoWCgdtZXNzYWdlEgRyZWFkEgV3cml0ZRoXCghvZmZjaGFpbhIEcmVhZBIFd3JpdGUaFgoHb25jaGFpbhIEcmVhZBIFd3JpdGUaFAoFcGVlcnMSBHJlYWQSBXdyaXRlGhgKBnNpZ25lchIIZ2VuZXJhdGUSBHJlYWQAAAYgMt90uD6v4truTadWCjlppoeJ4hZrL1SBb09Y+4WOiI0='
|
||||||
|
|
||||||
|
# Auto unlock LND password. Only used in development docker-compose environment.
|
||||||
|
# It will fail starting up the node without it.
|
||||||
|
# To disable auto unlock, comment out 'wallet-unlock-password-file=/tmp/pwd' from 'docker/lnd/lnd.conf'
|
||||||
|
AUTO_UNLOCK_PWD='1234'
|
||||||
|
|
||||||
# List of market price public APIs. If the currency is available in more than 1 API, will use median price.
|
# List of market price public APIs. If the currency is available in more than 1 API, will use median price.
|
||||||
MARKET_PRICE_APIS = https://blockchain.info/ticker, https://api.yadio.io/exrates/BTC
|
MARKET_PRICE_APIS = https://blockchain.info/ticker, https://api.yadio.io/exrates/BTC
|
||||||
|
@ -52,6 +52,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- .:/usr/src/robosats
|
- .:/usr/src/robosats
|
||||||
- /mnt/development/database:/usr/src/database
|
- /mnt/development/database:/usr/src/database
|
||||||
|
- /mnt/development/lnd:/lnd
|
||||||
network_mode: service:tor
|
network_mode: service:tor
|
||||||
|
|
||||||
celery:
|
celery:
|
||||||
@ -98,7 +99,7 @@ services:
|
|||||||
LOCAL_GROUP_ID: 1000
|
LOCAL_GROUP_ID: 1000
|
||||||
LND_RPC_PORT: 10009
|
LND_RPC_PORT: 10009
|
||||||
LND_REST_PORT: 8080
|
LND_REST_PORT: 8080
|
||||||
# AUTO_UNLOCK_PWD: ${AUTO_UNLOCK_PWD}
|
AUTO_UNLOCK_PWD: ${AUTO_UNLOCK_PWD}
|
||||||
|
|
||||||
bitcoind:
|
bitcoind:
|
||||||
build: ./docker/bitcoind
|
build: ./docker/bitcoind
|
||||||
|
@ -12,6 +12,7 @@ groupmod -g "${LOCAL_GROUP_ID:?}" lnd
|
|||||||
|
|
||||||
# Fix ownership
|
# Fix ownership
|
||||||
chown -R lnd /home/lnd
|
chown -R lnd /home/lnd
|
||||||
|
echo ${AUTO_UNLOCK_PWD} > /tmp/pwd
|
||||||
|
|
||||||
# Start lnd
|
# Start lnd
|
||||||
exec sudo -u lnd "$@"
|
exec sudo -u lnd "$@"
|
||||||
|
@ -12,7 +12,7 @@ bitcoind.rpcpass=bitcoindrobodevtestnet3
|
|||||||
bitcoind.zmqpubrawblock=tcp://127.0.0.1:18501
|
bitcoind.zmqpubrawblock=tcp://127.0.0.1:18501
|
||||||
bitcoind.zmqpubrawtx=tcp://127.0.0.1:18502
|
bitcoind.zmqpubrawtx=tcp://127.0.0.1:18502
|
||||||
|
|
||||||
# Wallet-unlock-password-file=/root/.lnd/pwd
|
wallet-unlock-password-file=/tmp/pwd
|
||||||
|
|
||||||
# Neutrino
|
# Neutrino
|
||||||
neutrino.connect=faucet.lightning.community
|
neutrino.connect=faucet.lightning.community
|
||||||
|
Loading…
Reference in New Issue
Block a user