nodeinfo: add btcpayserver onion

This commit is contained in:
nixbitcoin 2020-08-26 09:21:54 +00:00
parent 15b574faa7
commit 605b37c16e
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
2 changed files with 7 additions and 1 deletions

View File

@ -48,6 +48,12 @@ let
echo ELECTRS_ONION="$ELECTRS_ONION" echo ELECTRS_ONION="$ELECTRS_ONION"
fi fi
BTCPAYSERVER_ONION_FILE=/var/lib/onion-chef/${operatorName}/btcpayserver
if [ -e "$BTCPAYSERVER_ONION_FILE" ]; then
BTCPAYSERVER_ONION="$(cat $BTCPAYSERVER_ONION_FILE)"
echo BTCPAYSERVER_ONION="$BTCPAYSERVER_ONION"
fi
SSHD_ONION_FILE=/var/lib/onion-chef/${operatorName}/sshd SSHD_ONION_FILE=/var/lib/onion-chef/${operatorName}/sshd
if [ -e "$SSHD_ONION_FILE" ]; then if [ -e "$SSHD_ONION_FILE" ]; then
SSHD_ONION="$(cat $SSHD_ONION_FILE)" SSHD_ONION="$(cat $SSHD_ONION_FILE)"

View File

@ -177,7 +177,7 @@ in {
nix-bitcoin.netns-isolation.allowedUser = operatorName; nix-bitcoin.netns-isolation.allowedUser = operatorName;
# Give operator access to onion hostnames # Give operator access to onion hostnames
services.onion-chef.enable = true; services.onion-chef.enable = true;
services.onion-chef.access.${operatorName} = [ "bitcoind" "clightning" "nginx" "liquidd" "spark-wallet" "electrs" "sshd" ]; services.onion-chef.access.${operatorName} = [ "bitcoind" "clightning" "nginx" "liquidd" "spark-wallet" "electrs" "btcpayserver" "sshd" ];
security.sudo.configFile = security.sudo.configFile =
(optionalString cfg.lnd.enable '' (optionalString cfg.lnd.enable ''