webindex & onion-chef: Run non-network-facing services in PrivateNetwork

This commit is contained in:
nixbitcoin 2020-05-05 15:25:00 +02:00
parent 7c70dd43ac
commit 3cd61506e0
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
2 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ in {
RemainAfterExit="yes";
Restart = "on-failure";
RestartSec = "10s";
PrivateNetwork = "true"; # This service needs no network access
} // (if cfg.enforceTor
then nix-bitcoin-services.allowTor
else nix-bitcoin-services.allowAnyIP

View File

@ -77,6 +77,7 @@ in {
ExecStart = "${pkgs.bash}/bin/bash ${onion-chef-script}";
Type = "oneshot";
RemainAfterExit = true;
PrivateNetwork = "true"; # This service needs no network access
};
};
};