netns: move webindex config for modules-only usage

webindex is only available in secure-node.
This commit is contained in:
Erik Arvstedt
2020-08-25 11:40:27 +02:00
parent 121301337b
commit 32e70a7516
2 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -41,7 +41,10 @@ in {
};
host = mkOption {
type = types.str;
default = "localhost";
default = if config.nix-bitcoin.netns-isolation.enable then
config.nix-bitcoin.netns-isolation.netns.nginx.address
else
"localhost";
description = "HTTP server listen address.";
};
enforceTor = nix-bitcoin-services.enforceTor;