mirror of
https://github.com/openoms/bitcoin-tutorials.git
synced 2025-12-19 12:54:19 +01:00
Example for Electrum connection with tor active.
Example for Electrum connection with tor active.
This commit is contained in:
@@ -105,6 +105,10 @@ echo ""
|
||||
sudo apt-get install -y nginx
|
||||
sudo /etc/init.d/nginx start
|
||||
|
||||
# Only generate if there is none. Or Electrum will not connect if the cert changed.
|
||||
if [ -f /etc/ssl/certs/localhost.crt ] ; then
|
||||
echo "skiping self signed SSL certificate"
|
||||
else
|
||||
echo ""
|
||||
echo "***"
|
||||
echo "Create a self signed SSL certificate"
|
||||
@@ -149,6 +153,8 @@ sudo openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout localhost.key
|
||||
sudo cp localhost.crt /etc/ssl/certs/localhost.crt
|
||||
sudo cp localhost.key /etc/ssl/private/localhost.key
|
||||
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "***"
|
||||
echo "Setting up nginx.conf"
|
||||
@@ -270,11 +276,15 @@ if [ "${runBehindTor}" = "on" ]; then
|
||||
echo "***"
|
||||
echo "The Tor Hidden Service address for electrs is:"
|
||||
echo "$TOR_ADDRESS"
|
||||
echo "Electrum wallet: start with the options:"
|
||||
echo "\`electrum --oneserver --server=$TOR_ADDRESS:50001:t --proxy socks5:127.0.0.1:9150
|
||||
\'"
|
||||
echo "***"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
else
|
||||
echo ""
|
||||
echo "To connect from outside of the local network make sure the port 50002 is forwarded on the router"
|
||||
echo "Electrum wallet: start with the options \`electrum --oneserver --server RaspiBlitz_IP:50002:s\`"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user