electrs: Make TLSProxy truly optional
If TLSProxy is disabled, bypass nginx by forwarding Tor HS traffic directly to electrs.
This commit is contained in:
parent
e3a6ca3bb1
commit
4c139a6d77
@ -99,7 +99,7 @@ in {
|
|||||||
};
|
};
|
||||||
services.tor.hiddenServices.electrs = mkHiddenService {
|
services.tor.hiddenServices.electrs = mkHiddenService {
|
||||||
port = cfg.electrs.onionport;
|
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;
|
services.spark-wallet.onion-service = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user