Rename service settings for 'node' to 'nodejs' to avoid confusion

This commit is contained in:
Jonas Nick 2019-05-03 10:44:16 +00:00
parent 469c1de6a9
commit e1ee5023e2
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
4 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ in {
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "10s"; RestartSec = "10s";
} // nix-bitcoin-services.defaultHardening } // nix-bitcoin-services.defaultHardening
// nix-bitcoin-services.node // nix-bitcoin-services.nodejs
// nix-bitcoin-services.allowTor; // nix-bitcoin-services.allowTor;
}; };
}; };

View File

@ -75,7 +75,7 @@ in {
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "10s"; RestartSec = "10s";
} // nix-bitcoin-services.defaultHardening } // nix-bitcoin-services.defaultHardening
// nix-bitcoin-services.node // nix-bitcoin-services.nodejs
// nix-bitcoin-services.allowTor; // nix-bitcoin-services.allowTor;
}; };
}; };

View File

@ -21,8 +21,8 @@ let
in in
{ {
inherit defaultHardening; inherit defaultHardening;
# node applications apparently rely on memory write execute # nodejs applications apparently rely on memory write execute
node = { MemoryDenyWriteExecute = "false"; }; nodejs = { MemoryDenyWriteExecute = "false"; };
# Allow tor traffic. Allow takes precedence over Deny. # Allow tor traffic. Allow takes precedence over Deny.
allowTor = { allowTor = {
IPAddressAllow = "127.0.0.1/32 ::1/128"; IPAddressAllow = "127.0.0.1/32 ::1/128";

View File

@ -65,7 +65,7 @@ in {
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "10s"; RestartSec = "10s";
} // nix-bitcoin-services.defaultHardening } // nix-bitcoin-services.defaultHardening
// nix-bitcoin-services.node // nix-bitcoin-services.nodejs
// nix-bitcoin-services.allowTor; // nix-bitcoin-services.allowTor;
}; };
}; };