mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-09-23 17:30:02 +00:00
Explicitly add onion url to LND TLS cert
This commit is contained in:
parent
693bd0af65
commit
54fc8e058b
|
@ -16,6 +16,15 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Append tor domain
|
||||||
|
if [ -f /var/lib/tor/mynode_lnd/hostname ]; then
|
||||||
|
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
|
echo "[Application Options]" >> /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
|
ONION_URL=$(cat /var/lib/tor/mynode_lnd/hostname)
|
||||||
|
echo "tlsextradomain=$ONION_URL" >> /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
|
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias)
|
ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias)
|
||||||
sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf
|
sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf
|
chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf
|
Loading…
Reference in New Issue
Block a user