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
|
||||
|
||||
#### automate TSL cert renewal
|
||||
|
||||
##### 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
|
||||
#### automate TSL cert renewal with cron
|
||||
|
||||
Open root's crontab:
|
||||
|
||||
$ sudo crontab -e
|
||||
|
||||
Add the following line:
|
||||
Add the following line, then save and exit:
|
||||
|
||||
@monthly /usr/bin/systemctl restart openresty.service
|
||||
|
||||
Save and exit.
|
||||
19 4 1 * * /usr/bin/dehydrated --config /var/www/config --cron >/dev/null 2>&1 && /usr/bin/systemctl restart openresty.service
|
||||
|
||||
## gotchas
|
||||
|
||||
|
||||
Reference in New Issue
Block a user