acme: RestartSec = 15 * 60

This commit is contained in:
Alexander Tomokhov 2023-12-04 13:22:27 +04:00
parent c0aa73ca1b
commit c63b6b808c

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, lib, ... }:
let let
domain = config.selfprivacy.domain; domain = config.selfprivacy.domain;
in in
@ -10,6 +10,10 @@ in
StartLimitBurst = 5; StartLimitBurst = 5;
StartLimitIntervalSec = 5; StartLimitIntervalSec = 5;
Restart = "on-failure"; Restart = "on-failure";
RestartSec =
if lib.versionOlder config.system.nixos.release "23.11"
then 15 * 60
else abort "since NixOS 23.11 (#266155) ACME systemd service restart intervals should have been fixed, thus no workarounds are needed";
}; };
}; };
}; };