Update README TSL cert renewal instructions

This commit is contained in:
2026-03-06 14:23:40 -08:00
parent b83df70e21
commit d38b068cee

View File

@@ -100,29 +100,15 @@ Then restart the OpenResty service:
$ sudo service openresty restart $ sudo service openresty restart
#### automate TSL cert renewal #### automate TSL cert renewal with cron
##### renew TSL certs
Open crontab:
$ crontab -e
Add the following line, then save and exit:
19 4 1 * * /usr/bin/dehydrated --config /var/www/config --cron >/dev/null 2>&1
##### restart service
Open root's crontab: Open root's crontab:
$ sudo crontab -e $ sudo crontab -e
Add the following line: Add the following line, then save and exit:
@monthly /usr/bin/systemctl restart openresty.service 19 4 1 * * /usr/bin/dehydrated --config /var/www/config --cron >/dev/null 2>&1 && /usr/bin/systemctl restart openresty.service
Save and exit.
## gotchas ## gotchas