services: certbot: Run certbot twice a day at a random minute.
* doc/guix.texi (Certificate Services): Document it. * gnu/services/certbot.scm (certbot-renewal-jobs): Change job's time specification.
This commit is contained in:
parent
70cd2239a5
commit
7ab04c17c0
|
@ -30,7 +30,7 @@ Copyright @copyright{} 2016, 2017 ng0@*
|
||||||
Copyright @copyright{} 2016, 2017 Jan Nieuwenhuizen@*
|
Copyright @copyright{} 2016, 2017 Jan Nieuwenhuizen@*
|
||||||
Copyright @copyright{} 2016 Julien Lepiller@*
|
Copyright @copyright{} 2016 Julien Lepiller@*
|
||||||
Copyright @copyright{} 2016 Alex ter Weele@*
|
Copyright @copyright{} 2016 Alex ter Weele@*
|
||||||
Copyright @copyright{} 2017 Clément Lassieur@*
|
Copyright @copyright{} 2017, 2018 Clément Lassieur@*
|
||||||
Copyright @copyright{} 2017 Mathieu Othacehe@*
|
Copyright @copyright{} 2017 Mathieu Othacehe@*
|
||||||
Copyright @copyright{} 2017 Federico Beffa@*
|
Copyright @copyright{} 2017 Federico Beffa@*
|
||||||
Copyright @copyright{} 2017 Carlo Zancanaro@*
|
Copyright @copyright{} 2017 Carlo Zancanaro@*
|
||||||
|
@ -15735,6 +15735,12 @@ generation, the initial certification request to the Let's Encrypt
|
||||||
service, the web server challenge/response integration, writing the
|
service, the web server challenge/response integration, writing the
|
||||||
certificate to disk, and the automated periodic renewals.
|
certificate to disk, and the automated periodic renewals.
|
||||||
|
|
||||||
|
Certbot is run twice a day, at a random minute within the hour. It
|
||||||
|
won't do anything until your certificates are due for renewal or
|
||||||
|
revoked, but running it regularly would give your service a chance of
|
||||||
|
staying online in case a Let's Encrypt-initiated revocation happened for
|
||||||
|
some reason.
|
||||||
|
|
||||||
@defvr {Scheme Variable} certbot-service-type
|
@defvr {Scheme Variable} certbot-service-type
|
||||||
A service type for the @code{certbot} Let's Encrypt client.
|
A service type for the @code{certbot} Let's Encrypt client.
|
||||||
@end defvr
|
@end defvr
|
||||||
|
|
|
@ -65,10 +65,10 @@
|
||||||
(() '())
|
(() '())
|
||||||
(_
|
(_
|
||||||
(list
|
(list
|
||||||
;; Attempt to renew the certificates twice a week.
|
;; Attempt to renew the certificates twice per day, at a random
|
||||||
#~(job (lambda (now)
|
;; minute within the hour. See
|
||||||
(next-day-from (next-hour-from now '(3))
|
;; https://certbot.eff.org/all-instructions/.
|
||||||
'(2 5)))
|
#~(job '(next-minute-from (next-hour '(0 12)) (list (random 60)))
|
||||||
(string-append #$package "/bin/certbot renew"
|
(string-append #$package "/bin/certbot renew"
|
||||||
(string-concatenate
|
(string-concatenate
|
||||||
(map (lambda (host)
|
(map (lambda (host)
|
||||||
|
|
Loading…
Reference in New Issue