Update README TSL cert renewal instructions
This commit is contained in:
20
README.md
20
README.md
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user