feat: add certificate request task

This commit is contained in:
Lenoctambule
2026-04-02 21:32:49 +02:00
parent 6c0d40acf6
commit ceab15c25e
5 changed files with 37 additions and 8 deletions

View File

@@ -95,9 +95,9 @@ services:
- ./nginx/certbot/www:/var/www/certbot
- ./nginx/99-autoreload.sh:/docker-entrypoint.d/99-autoreload.sh
# certbot:
# image: certbot/certbot
# volumes:
# - ./nginx/certbot/conf:/etc/letsencrypt
# - ./nginx/certbot/www:/var/www/certbot
# entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
certbot:
image: certbot/certbot
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"

View File

@@ -0,0 +1,5 @@
#!/bin/sh
while :; do
sleep 6h
nginx -t && nginx -s reload
done &