mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 02:12:45 +03:00
31 lines
1.0 KiB
Bash
31 lines
1.0 KiB
Bash
set -e
|
|
set -o pipefail
|
|
|
|
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"
|
|
|
|
echo BITCOIND_ONION="$BITCOIND_ONION"
|
|
echo CLIGHTNING_NODEID="$CLIGHTNING_NODEID"
|
|
echo CLIGHTNING_ONION="$CLIGHTNING_ONION"
|
|
echo CLIGHTNING_ID="$CLIGHTNING_ID"
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|