From 4c139a6d7778abf0957cbcaca443bdddb42dcce7 Mon Sep 17 00:00:00 2001 From: nixbitcoin Date: Sun, 3 May 2020 10:23:50 +0200 Subject: [PATCH] electrs: Make TLSProxy truly optional If TLSProxy is disabled, bypass nginx by forwarding Tor HS traffic directly to electrs. --- modules/presets/secure-node.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/presets/secure-node.nix b/modules/presets/secure-node.nix index 8feb283..83b567e 100644 --- a/modules/presets/secure-node.nix +++ b/modules/presets/secure-node.nix @@ -99,7 +99,7 @@ in { }; services.tor.hiddenServices.electrs = mkHiddenService { port = cfg.electrs.onionport; - toPort = cfg.electrs.TLSProxy.port; + toPort = if cfg.electrs.TLSProxy.enable then cfg.electrs.TLSProxy.port else cfg.electrs.port; }; services.spark-wallet.onion-service = true;