nginx: add netns
- Adds nginx to netns-isolation.services - Adds host option (defaults to localhost) as target of hidden service
This commit is contained in:
parent
ef89607704
commit
c542b92e55
2 changed files with 14 additions and 2 deletions
|
|
@ -124,6 +124,10 @@ in {
|
|||
# communicates with clightning over lightning-rpc socket
|
||||
connections = [];
|
||||
};
|
||||
nginx = {
|
||||
id = 21;
|
||||
connections = [];
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services = {
|
||||
|
|
@ -286,6 +290,9 @@ in {
|
|||
host = netns.nanopos.address;
|
||||
};
|
||||
|
||||
# nginx: Custom netns configs
|
||||
services.nix-bitcoin-webindex.host = mkIf config.services.nix-bitcoin-webindex.enable netns.nginx.address;
|
||||
|
||||
})
|
||||
# Custom netns config option values if netns-isolation not enabled
|
||||
(mkIf (!cfg.enable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue