Create script to get real certificates. Programs are functional but have not tried pointing the production router to the test box yet to see if the challenge will pass.

This commit is contained in:
2023-07-06 07:33:17 -07:00
parent 7be7df9b45
commit 478cce43b5
3 changed files with 76 additions and 2 deletions

View File

@@ -15,11 +15,12 @@ services:
- "80:80"
- "443:443"
volumes:
- ../../Volumes/ReverseProxy/letsencrypt:/etc/nginx/letsencrypt
- ../../Volumes/ReverseProxy/letsencrypt-certs:/etc/nginx/certs
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
volumes:
- ../../Volumes/ReverseProxy/letsencrypt-etc:/etc/letsencrypt
- ../../Volumes/ReverseProxy/letsencrypt:/etc/letsencrypt
- ../../Volumes/ReverseProxy/letsencrypt-certs:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"