summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2020-02-23 01:46:46 +0000
committerEmily <vcs@emily.moe>2020-02-29 14:03:36 +0000
commit7b14bbd7342cde743e5b06a4ccc53a7001d7a1d5 (patch)
tree1b71f175820dde93bb91ea73cd03c91b48155421 /pkgs/development/python-modules/rangehttpserver
parentea79a830dcf9c0059656da7f52835d2663d5c436 (diff)
nixos/acme: adjust renewal timer options
The current weekly setting causes every NixOS server to try to renew its certificate at midnight on the dot on Monday. This contributes to the general problem of periodic load spikes for Let's Encrypt; NixOS is probably not a major contributor to that problem, but we can lead by example by picking good defaults here. The values here were chosen after consulting with @yuriks, an SRE at Let's Encrypt: * Randomize the time certificates are renewed within a 24 hour period. * Check for renewal every 24 hours, to ensure the certificate is always renewed before an expiry notice is sent out. * Increase the AccuracySec (thus lowering the accuracy(!)), so that systemd can coalesce the renewal with other timers being run. (You might be worried that this would defeat the purpose of the time skewing, but systemd is documented as avoiding this by picking a random time.)
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions