Example for Electrum connection with tor active.

Example for Electrum connection with tor active.
This commit is contained in:
Stephan Oeste
2019-09-27 20:48:52 +02:00
committed by GitHub
parent 31bf48794a
commit f180472806

View File

@@ -105,6 +105,10 @@ echo ""
sudo apt-get install -y nginx sudo apt-get install -y nginx
sudo /etc/init.d/nginx start 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 "***" echo "***"
echo "Create a self signed SSL certificate" 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.crt /etc/ssl/certs/localhost.crt
sudo cp localhost.key /etc/ssl/private/localhost.key sudo cp localhost.key /etc/ssl/private/localhost.key
fi
echo "" echo ""
echo "***" echo "***"
echo "Setting up nginx.conf" echo "Setting up nginx.conf"
@@ -270,11 +276,15 @@ if [ "${runBehindTor}" = "on" ]; then
echo "***" echo "***"
echo "The Tor Hidden Service address for electrs is:" echo "The Tor Hidden Service address for electrs is:"
echo "$TOR_ADDRESS" 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 "***"
echo "" echo ""
fi else
echo "" echo ""
echo "To connect from outside of the local network make sure the port 50002 is forwarded on the router" 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 "Electrum wallet: start with the options \`electrum --oneserver --server RaspiBlitz_IP:50002:s\`"
echo "" echo ""
fi