Letsencrypt renew cron for Nginx CentOS / Ubuntu

crontab -e
@monthly letsencrypt-auto certonly --email [email protected] --agree-tos --webroot --renew-by-default -w /home/the-d2/public_html/ -d the-d2.com -d www.the-d2.com --authenticator webroot ; nginx -t && /etc/init.d/nginx reload

Leave a Reply