2018-11-23 15:49:13 +00:00
|
|
|
set -e
|
|
|
|
set -o pipefail
|
|
|
|
|
2018-12-01 20:48:58 +00:00
|
|
|
BITCOIND_ONION="$(cat /var/lib/tor/onion/bitcoind/hostname)"
|
|
|
|
CLIGHTNING_NODEID=$(sudo -u clightning lightning-cli --lightning-dir=/var/lib/clightning getinfo | jq -r '.id')
|
|
|
|
CLIGHTNING_ONION="$(cat /var/lib/tor/onion/clightning/hostname)"
|
|
|
|
CLIGHTNING_ID="$CLIGHTNING_NODEID@$CLIGHTNING_ONION:9735"
|
2018-11-23 15:49:13 +00:00
|
|
|
|
2018-12-01 20:48:58 +00:00
|
|
|
echo BITCOIND_ONION="$BITCOIND_ONION"
|
|
|
|
echo CLIGHTNING_NODEID="$CLIGHTNING_NODEID"
|
|
|
|
echo CLIGHTNING_ONION="$CLIGHTNING_ONION"
|
|
|
|
echo CLIGHTNING_ID="$CLIGHTNING_ID"
|
2018-12-01 21:38:08 +00:00
|
|
|
|
|
|
|
NGINX_ONION_FILE=/var/lib/tor/onion/nginx/hostname
|
|
|
|
if [ -e "$NGINX_ONION_FILE" ]; then
|
|
|
|
NGINX_ONION="$(cat $NGINX_ONION_FILE)"
|
|
|
|
echo NGINX_ONION="$NGINX_ONION"
|
|
|
|
fi
|
2018-12-10 16:34:41 +00:00
|
|
|
|
|
|
|
SPARKWALLET_ONION_FILE=/var/lib/tor/onion/spark-wallet/hostname
|
|
|
|
if [ -e "$SPARKWALLET_ONION_FILE" ]; then
|
|
|
|
SPARKWALLET_ONION="$(cat $SPARKWALLET_ONION_FILE)"
|
|
|
|
echo SPARKWALLET_ONION="http://$SPARKWALLET_ONION"
|
|
|
|
fi
|
2018-12-27 21:22:52 +00:00
|
|
|
|
2019-02-25 16:00:50 +00:00
|
|
|
ELECTRS_ONION_FILE=/var/lib/tor/onion/electrs/hostname
|
|
|
|
if [ -e "$ELECTRS_ONION_FILE" ]; then
|
|
|
|
ELECTRS_ONION="$(cat $ELECTRS_ONION_FILE)"
|
|
|
|
echo ELECTRS_ONION="$ELECTRS_ONION"
|
|
|
|
fi
|
|
|
|
|
2018-12-27 21:22:52 +00:00
|
|
|
SSHD_ONION_FILE=/var/lib/tor/onion/sshd/hostname
|
|
|
|
if [ -e "$SSHD_ONION_FILE" ]; then
|
|
|
|
SSHD_ONION="$(cat $SSHD_ONION_FILE)"
|
|
|
|
echo SSHD_ONION="$SSHD_ONION"
|
|
|
|
fi
|