mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
certbot: Use --deploy-hook to get the cert actually served.
Certbot replaces the cert files under /etc/letsencrypt/live/, which our nginx config refers to symlinks to; but it doesn't tell nginx there's been an update, so nginx keeps serving the old cert. This is fine as long as nginx is restarted, or just told to reload its config, at some point before the cert actually expires about 30 days later. Which is probably the common case, but of course we should make it just work. So, if we actually renew a cert, tell nginx to reload its config now.
This commit is contained in:
@@ -16,4 +16,5 @@ if ! zulip_conf_get_boolean certbot auto_renew; then
|
||||
fi
|
||||
|
||||
/usr/local/sbin/certbot-auto renew --quiet \
|
||||
--webroot --webroot-path=/var/lib/zulip/certbot-webroot/
|
||||
--webroot --webroot-path=/var/lib/zulip/certbot-webroot/ \
|
||||
--deploy-hook 'service nginx reload'
|
||||
|
||||
Reference in New Issue
Block a user