webindex & onion-chef: Run non-network-facing services in PrivateNetwork
This commit is contained in:
parent
7c70dd43ac
commit
3cd61506e0
2 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ in {
|
||||||
RemainAfterExit="yes";
|
RemainAfterExit="yes";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "10s";
|
RestartSec = "10s";
|
||||||
|
PrivateNetwork = "true"; # This service needs no network access
|
||||||
} // (if cfg.enforceTor
|
} // (if cfg.enforceTor
|
||||||
then nix-bitcoin-services.allowTor
|
then nix-bitcoin-services.allowTor
|
||||||
else nix-bitcoin-services.allowAnyIP
|
else nix-bitcoin-services.allowAnyIP
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ in {
|
||||||
ExecStart = "${pkgs.bash}/bin/bash ${onion-chef-script}";
|
ExecStart = "${pkgs.bash}/bin/bash ${onion-chef-script}";
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
|
PrivateNetwork = "true"; # This service needs no network access
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue