aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/certbot.bash
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-21 00:36:11 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-21 00:58:57 +0800
commitb176ed028f4c8dcc127bd8b9870050c9d76d6854 (patch)
tree81e7562435f9983732ca4015f21287f21ed60017 /docker/nginx/certbot.bash
parent782012e07f4d8ecb490d5e245988eba56a90efb9 (diff)
downloadcrupest-b176ed028f4c8dcc127bd8b9870050c9d76d6854.tar.gz
crupest-b176ed028f4c8dcc127bd8b9870050c9d76d6854.tar.bz2
crupest-b176ed028f4c8dcc127bd8b9870050c9d76d6854.zip
feat(nginx): move certbot to nginx.
Diffstat (limited to 'docker/nginx/certbot.bash')
-rw-r--r--docker/nginx/certbot.bash9
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