Page MenuHomeDevCentral

Restart nginx on Ysul when renew certificates
Open, HighPublic

Description

Certbot can now execute a command after all the renewals. We could use this to restart nginx after certificate renewal:

For example, we could cron or alias this:

certbot -q renew --post-hook "/usr/local/sbin/nginx -t && /usr/local/sbin/nginx -s reload"

Event Timeline

dereckson renamed this task from restart nginx on Ysul when renew certificates to Restart nginx on Ysul when renew certificates.Feb 13 2022, 03:13