Remove bitcoind config from LndHub

This commit is contained in:
Taylor Helsper 2021-06-03 22:02:34 -05:00
parent e7b7ecceff
commit 47a96dedd0
2 changed files with 5 additions and 4 deletions

View File

@ -552,7 +552,7 @@ sudo usermod -aG plugdev bitcoin
BTCRPCPW=$(cat /mnt/hdd/mynode/settings/.btcrpcpw)
if [ -f /opt/mynode/LndHub/config.js ]; then
cp -f /usr/share/mynode/lndhub-config.js /opt/mynode/LndHub/config.js
sed -i "s/mynode:.*@/mynode:$BTCRPCPW@/g" /opt/mynode/LndHub/config.js
#sed -i "s/mynode:.*@/mynode:$BTCRPCPW@/g" /opt/mynode/LndHub/config.js
chown bitcoin:bitcoin /opt/mynode/LndHub/config.js
fi
if [ -f /opt/mynode/btc-rpc-explorer/.env ]; then

View File

@ -1,9 +1,10 @@
let config = {
enableUpdateDescribeGraph: false,
postRateLimit: 100,
rateLimit: 200,
bitcoind: {
rpc: 'http://mynode:bolt@127.0.0.1:8332/wallet/wallet.dat',
},
//bitcoind: {
// rpc: 'http://mynode:bolt@127.0.0.1:8332/wallet/wallet.dat',
//},
redis: {
port: 6379,
host: '127.0.0.1',