lets 证书自动更新,将下面的定时任务加入crontab,crontab -e
打开复制粘贴:
0 12 * * * /usr/bin/certbot renew --quiet
更新之后,重新加载nginx
0 12 1,15 * * /usr/bin/certbot renew --quiet --post-hook "nginx -s reload"
52 0,12 * * * root /usr/bin/certbot renew --renew-hook 'service nginx reload'
https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/