electrs: make nginx TLS proxy optional

Electrs users shouldn't be forced to run a TLS proxy.
This commit is contained in:
Erik Arvstedt 2020-03-04 18:08:49 +01:00
parent acde24ce43
commit 93fd2329b8
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 33 additions and 20 deletions

View file

@ -145,10 +145,11 @@ in {
services.electrs.port = 50001;
services.electrs.enforceTor = true;
services.electrs.onionport = 50002;
services.electrs.nginxport = 50003;
services.electrs.TLSProxy.enable = true;
services.electrs.TLSProxy.port = 50003;
services.tor.hiddenServices.electrs = {
map = [{
port = config.services.electrs.onionport; toPort = config.services.electrs.nginxport;
port = config.services.electrs.onionport; toPort = config.services.electrs.TLSProxy.port;
}];
version = 3;
};