mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nixos/acme: disable rate limiting to fix the test (#374984)
This commit is contained in:
@@ -1333,7 +1333,14 @@ in
|
||||
restartTriggers = optionals cfg.enableReload [ configFile ];
|
||||
# Block reloading if not all certs exist yet.
|
||||
# Happens when config changes add new vhosts/certs.
|
||||
unitConfig.ConditionPathExists = optionals (sslServices != []) (map (certName: certs.${certName}.directory + "/fullchain.pem") vhostCertNames);
|
||||
unitConfig = {
|
||||
ConditionPathExists = optionals (sslServices != []) (map (certName: certs.${certName}.directory + "/fullchain.pem") vhostCertNames);
|
||||
# Disable rate limiting for this, because it may be triggered quickly a bunch of times
|
||||
# if a lot of certificates are renewed in quick succession. The reload itself is cheap,
|
||||
# so even doing a lot of them in a short burst is fine.
|
||||
# FIXME: there's probably a better way to do this.
|
||||
StartLimitIntervalSec = 0;
|
||||
};
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
TimeoutSec = 60;
|
||||
|
||||
Reference in New Issue
Block a user