From 894ce9dd1b65a6a1645f3e42526cdf5581d69dff Mon Sep 17 00:00:00 2001 From: Linden Crandall Date: Fri, 7 Feb 2025 00:08:20 +0000 Subject: [PATCH] Update Production HTTPS Setup --- Production-HTTPS-Setup.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Production-HTTPS-Setup.md b/Production-HTTPS-Setup.md index e8c856c..a8be067 100644 --- a/Production-HTTPS-Setup.md +++ b/Production-HTTPS-Setup.md @@ -85,3 +85,7 @@ http { } ``` - Then rebuild the containers: `docker compose up -d`. After it is rebuilt we should be able to pull up Automatisch at (staging) `https://automatisch.lasthourhosting.org` with a valid cert +## Cronjob for auto SSL Cert renewals +- Locate Docker binary: `whereis docker` or `sudo whereis docker` +- It should be in `/usr/bin/docker`, but wherever it is on the system, run `crontab -e` and enter this task to renew the ssl cert, replace `/path/to/docker-compose.yml` with the actual path where the docker-compose.yml file is: +`0 5 1 */2 * /usr/bin/docker compose -f /path/to/docker-compose.yml up certbot`