Unverified Commit b1c25de5 authored by Léo Gaspard's avatar Léo Gaspard Committed by GitHub
Browse files

nixos/acme: do not eat Let's Encrypt's request limits if misconfigured on first try (#266155)

parent f7ac3fbf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -345,6 +345,10 @@ let
      serviceConfig = commonServiceConfig // {
        Group = data.group;

        # Let's Encrypt Failed Validation Limit allows 5 retries per hour, per account, hostname and hour.
        # This avoids eating them all up if something is misconfigured upon the first try.
        RestartSec = 15 * 60;

        # Keep in mind that these directories will be deleted if the user runs
        # systemctl clean --what=state
        # acme/.lego/${cert} is listed for this reason.