Update RTL Config

This commit is contained in:
Taylor Helsper 2020-02-10 13:25:41 -06:00
parent 7c81f3e162
commit db6030a09e
4 changed files with 34 additions and 30 deletions

View File

@ -10,10 +10,5 @@ echo "admin:$PASSWORD" | chpasswd
echo "$HASH" > /home/bitcoin/.mynode/.hashedpw echo "$HASH" > /home/bitcoin/.mynode/.hashedpw
# Change RTL password # Change RTL password
sed -i "s/rtlPassHashed=.*/rtlPassHashed=$HASH/g" /opt/mynode/RTL/RTL.conf sed -i "s/\"multiPassHashed\":.*/\"multiPassHashed\": \"$HASH\",/g" /opt/mynode/RTL/RTL-Config.json
systemctl restart rtl & systemctl restart rtl &
# Change LND Admin Password
#cp -f /usr/share/mynode/lnd_admin_credentials.json /home/bitcoin/.lnd-admin/credentials.json
#sed -i "s/\"adminPasswordSha256\":.*/\"adminPasswordSha256\": \"$HASH\"/g" /home/bitcoin/.lnd-admin/credentials.json
#systemctl restart lnd_admin

View File

@ -197,12 +197,12 @@ source /usr/bin/mynode_gen_lnd_config.sh
# RTL config # RTL config
sudo -u bitcoin mkdir -p /opt/mynode/RTL/ sudo -u bitcoin mkdir -p /opt/mynode/RTL/
chown -R bitcoin:bitcoin /mnt/hdd/mynode/rtl_backup/ chown -R bitcoin:bitcoin /mnt/hdd/mynode/rtl_backup/
cp /usr/share/mynode/RTL.conf /opt/mynode/RTL/RTL.conf cp /usr/share/mynode/RTL-Config.json /opt/mynode/RTL/RTL-Config.json
if [ -f /home/bitcoin/.mynode/.hashedpw ]; then if [ -f /home/bitcoin/.mynode/.hashedpw ]; then
HASH=$(cat /home/bitcoin/.mynode/.hashedpw) HASH=$(cat /home/bitcoin/.mynode/.hashedpw)
sed -i "s/rtlPassHashed=.*/rtlPassHashed=$HASH/g" /opt/mynode/RTL/RTL.conf sed -i "s/\"multiPassHashed\":.*/\"multiPassHashed\": \"$HASH\",/g" /opt/mynode/RTL/RTL-Config.json
fi fi
chown bitcoin:bitcoin /opt/mynode/RTL/RTL.conf chown bitcoin:bitcoin /opt/mynode/RTL/RTL-Config.json
# BTC RPC Explorer Config # BTC RPC Explorer Config
if [ ! -f /opt/mynode/btc-rpc-explorer/.env ]; then if [ ! -f /opt/mynode/btc-rpc-explorer/.env ]; then

View File

@ -0,0 +1,30 @@
{
"multiPassHashed": "d0b3cba71f725563d316ea3516099328042095d10f4571be25c07f9ce31985a5",
"port": "3010",
"defaultNodeIndex": 1,
"SSO": {
"rtlSSO": 0,
"rtlCookiePath": "",
"logoutRedirectLink": ""
},
"nodes": [
{
"index": 1,
"lnNode": "myNode",
"lnImplementation": "LND",
"Authentication": {
"macaroonPath": "/home/bitcoin/.lnd/data/chain/bitcoin/mainnet",
"configPath": "/home/bitcoin/.lnd/lnd.conf"
},
"Settings": {
"userPersona": "MERCHANT",
"themeMode": "DAY",
"themeColor": "PURPLE",
"channelBackupPath": "/mnt/hdd/mynode/rtl_backup/",
"enableLogging": true,
"lnServerUrl": "https://localhost:10080/v1",
"fiatConversion": false
}
}
]
}

View File

@ -1,21 +0,0 @@
[Authentication]
macaroonPath=/home/bitcoin/.lnd/data/chain/bitcoin/mainnet
nodeAuthType=CUSTOM
lndConfigPath=/home/bitcoin/.lnd/lnd.conf
rtlPassHashed=d0b3cba71f725563d316ea3516099328042095d10f4571be25c07f9ce31985a5
[SSO]
rtlSSO=0
rtlCookiePath=
logoutRedirectLink=/login
[Settings]
bitcoindConfigPath=/home/bitcoin/.bitcoin/bitcoin.conf
channelBackupPath=/mnt/hdd/mynode/rtl_backup/
enableLogging=true
port=3010
lndServerUrl=https://localhost:10080/v1
userPersona=OPERATOR
themeMode=DAY
themeColor=PURPLE
currencyUnit=USD