Add proxy and hidden service to liquidd
This commit is contained in:
parent
8b9c9bd70a
commit
de889d584f
@ -151,6 +151,14 @@ in {
|
|||||||
mainchainrpcuser=${config.services.bitcoind.rpcuser}
|
mainchainrpcuser=${config.services.bitcoind.rpcuser}
|
||||||
mainchainrpcport=8332
|
mainchainrpcport=8332
|
||||||
";
|
";
|
||||||
|
services.liquidd.listen = true;
|
||||||
|
services.liquidd.proxy = config.services.tor.client.socksListenAddress;
|
||||||
|
services.tor.hiddenServices.liquidd = {
|
||||||
|
map = [{
|
||||||
|
port = 7042; toPort = 7042;
|
||||||
|
}];
|
||||||
|
version = 3;
|
||||||
|
};
|
||||||
|
|
||||||
services.lightning-charge.enable = cfg.modules == "all";
|
services.lightning-charge.enable = cfg.modules == "all";
|
||||||
services.nanopos.enable = cfg.modules == "all";
|
services.nanopos.enable = cfg.modules == "all";
|
||||||
|
@ -17,6 +17,12 @@ if [ -e "$NGINX_ONION_FILE" ]; then
|
|||||||
echo NGINX_ONION="$NGINX_ONION"
|
echo NGINX_ONION="$NGINX_ONION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIQUIDD_ONION_FILE=/var/lib/tor/onion/liquidd/hostname
|
||||||
|
if [ -e "$LIQUIDD_ONION_FILE" ]; then
|
||||||
|
LIQUIDD_ONION="$(cat $LIQUIDD_ONION_FILE)"
|
||||||
|
echo LIQUIDD_ONION="$LIQUIDD_ONION"
|
||||||
|
fi
|
||||||
|
|
||||||
SPARKWALLET_ONION_FILE=/var/lib/tor/onion/spark-wallet/hostname
|
SPARKWALLET_ONION_FILE=/var/lib/tor/onion/spark-wallet/hostname
|
||||||
if [ -e "$SPARKWALLET_ONION_FILE" ]; then
|
if [ -e "$SPARKWALLET_ONION_FILE" ]; then
|
||||||
SPARKWALLET_ONION="$(cat $SPARKWALLET_ONION_FILE)"
|
SPARKWALLET_ONION="$(cat $SPARKWALLET_ONION_FILE)"
|
||||||
|
Loading…
Reference in New Issue
Block a user