From 99ac6b142f9b12fd25125f0bf99070fb76d84662 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sun, 8 Nov 2020 00:17:26 +0000 Subject: [PATCH] post(caddy): systemd start-rate-limit in 21.03 - https://github.com/NixOS/nixpkgs/pull/97512 --- source/_posts/caddy-nixos-part-3.md | 3 ++- source/_posts/caddy-v2-nixos.md | 3 ++- source/_posts/i2p-eepsite-nixos.md | 3 ++- source/_posts/tor-hidden-onion-nixos.md | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/source/_posts/caddy-nixos-part-3.md b/source/_posts/caddy-nixos-part-3.md index b8604ca..4fcea44 100644 --- a/source/_posts/caddy-nixos-part-3.md +++ b/source/_posts/caddy-nixos-part-3.md @@ -101,6 +101,7 @@ in { environment = mkIf (versionAtLeast config.system.stateVersion "17.09") { CADDYPATH = cfg.dataDir; }; startLimitIntervalSec = 86400; + # 21.03+ # https://github.com/NixOS/nixpkgs/pull/97512 # startLimitBurst = 5; serviceConfig = { @@ -112,7 +113,7 @@ in { User = "caddyProxy"; Group = "caddyProxy"; Restart = "on-failure"; - # <= 20.03 + # <= 20.09 StartLimitBurst = 5; NoNewPrivileges = true; LimitNPROC = 64; diff --git a/source/_posts/caddy-v2-nixos.md b/source/_posts/caddy-v2-nixos.md index bff0718..32ecf1f 100644 --- a/source/_posts/caddy-v2-nixos.md +++ b/source/_posts/caddy-v2-nixos.md @@ -80,6 +80,7 @@ in { environment = mkIf (versionAtLeast config.system.stateVersion "17.09" && !isCaddy2) { CADDYPATH = cfg.dataDir; }; startLimitIntervalSec = 86400; + # 21.03+ # https://github.com/NixOS/nixpkgs/pull/97512 # startLimitBurst = 5; serviceConfig = { @@ -91,7 +92,7 @@ in { User = "caddyProxy"; Group = "caddyProxy"; Restart = "on-failure"; - # <= 20.03 + # <= 20.09 StartLimitBurst = 5; NoNewPrivileges = true; LimitNPROC = 64; diff --git a/source/_posts/i2p-eepsite-nixos.md b/source/_posts/i2p-eepsite-nixos.md index bf7600c..fbb36ac 100644 --- a/source/_posts/i2p-eepsite-nixos.md +++ b/source/_posts/i2p-eepsite-nixos.md @@ -149,6 +149,7 @@ in { environment = mkIf (versionAtLeast config.system.stateVersion "17.09") { CADDYPATH = cfg.dataDir; }; startLimitIntervalSec = 86400; + # 21.03+ # https://github.com/NixOS/nixpkgs/pull/97512 # startLimitBurst = 5; serviceConfig = { @@ -160,7 +161,7 @@ in { User = "caddyProxy"; Group = "caddyProxy"; Restart = "on-failure"; - # <= 20.03 + # <= 20.09 StartLimitBurst = 5; NoNewPrivileges = true; LimitNPROC = 64; diff --git a/source/_posts/tor-hidden-onion-nixos.md b/source/_posts/tor-hidden-onion-nixos.md index d52df85..e873fbf 100644 --- a/source/_posts/tor-hidden-onion-nixos.md +++ b/source/_posts/tor-hidden-onion-nixos.md @@ -124,6 +124,7 @@ in { environment = mkIf (versionAtLeast config.system.stateVersion "17.09") { CADDYPATH = cfg.dataDir; }; startLimitIntervalSec = 86400; + # 21.03+ # https://github.com/NixOS/nixpkgs/pull/97512 # startLimitBurst = 5; serviceConfig = { @@ -135,7 +136,7 @@ in { User = "caddyProxy"; Group = "caddyProxy"; Restart = "on-failure"; - # <= 20.03 + # <= 20.09 StartLimitBurst = 5; NoNewPrivileges = true; LimitNPROC = 64;