diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-21 00:36:11 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-21 00:58:57 +0800 |
commit | a150350731232dce71300c3ae407422b28351d04 (patch) | |
tree | dfd8d56a0080c8292fb6f1be8bf7f264633c361d /docker/nginx/certbot.bash | |
parent | 9af2627390dac70faffa3a3b22ff49f77e782004 (diff) | |
download | crupest-a150350731232dce71300c3ae407422b28351d04.tar.gz crupest-a150350731232dce71300c3ae407422b28351d04.tar.bz2 crupest-a150350731232dce71300c3ae407422b28351d04.zip |
feat(nginx): move certbot to nginx.
Diffstat (limited to 'docker/nginx/certbot.bash')
-rw-r--r-- | docker/nginx/certbot.bash | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/nginx/certbot.bash b/docker/nginx/certbot.bash new file mode 100644 index 0000000..0b8e3b7 --- /dev/null +++ b/docker/nginx/certbot.bash @@ -0,0 +1,9 @@ +#!/usr/bin/bash + +set -e + +while true; do + certbot renew --deploy-hook "nginx -s reload" + echo "Sleep one day before next certbot renew." + sleep 1d +done |