From d38b068ceedd032bafb462b79ade54b52b3f9273 Mon Sep 17 00:00:00 2001 From: Catalin Constantin Mititiuc Date: Fri, 6 Mar 2026 14:23:40 -0800 Subject: [PATCH] Update README TSL cert renewal instructions --- README.md | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 312b645..0ec5c92 100644 --- a/README.md +++ b/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