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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue