mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Update RTL Config
This commit is contained in:
parent
7c81f3e162
commit
db6030a09e
|
@ -10,10 +10,5 @@ echo "admin:$PASSWORD" | chpasswd
|
|||
echo "$HASH" > /home/bitcoin/.mynode/.hashedpw
|
||||
|
||||
# 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 &
|
||||
|
||||
# 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
|
|
@ -197,12 +197,12 @@ source /usr/bin/mynode_gen_lnd_config.sh
|
|||
# RTL config
|
||||
sudo -u bitcoin mkdir -p /opt/mynode/RTL/
|
||||
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
|
||||
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
|
||||
chown bitcoin:bitcoin /opt/mynode/RTL/RTL.conf
|
||||
chown bitcoin:bitcoin /opt/mynode/RTL/RTL-Config.json
|
||||
|
||||
# BTC RPC Explorer Config
|
||||
if [ ! -f /opt/mynode/btc-rpc-explorer/.env ]; then
|
||||
|
|
30
rootfs/standard/usr/share/mynode/RTL-Config.json
Normal file
30
rootfs/standard/usr/share/mynode/RTL-Config.json
Normal 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
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user