Reverts to functional certbot configuration

This commit is contained in:
Mouse Reeve 2021-06-05 10:46:41 -07:00
parent 730b6fabc4
commit 8086b9bca5
2 changed files with 2 additions and 20 deletions

View file

@ -1,19 +0,0 @@
#!/usr/bin/env bash
source .env;
if [ "$CERTBOT_INIT" = "true" ]
then
certonly \
--webroot \
--webroot-path=/var/www/certbot \
--email ${EMAIL} \
--agree-tos \
--no-eff-email \
-d ${DOMAIN} \
-d www.${DOMAIN}
else
renew \
--webroot \
--webroot-path \
/var/www/certbot
fi

View file

@ -18,7 +18,8 @@ services:
- media_volume:/app/images - media_volume:/app/images
certbot: certbot:
image: certbot/certbot:latest image: certbot/certbot:latest
command: bash ./certbot.sh command: certonly --webroot --webroot-path=/var/www/certbot --email ${EMAIL} --agree-tos --no-eff-email -d ${DOMAIN} -d www.${DOMAIN}
#command: renew --webroot --webroot-path /var/www/certbot
volumes: volumes:
- ./certbot/conf:/etc/letsencrypt - ./certbot/conf:/etc/letsencrypt
- ./certbot/logs:/var/log/letsencrypt - ./certbot/logs:/var/log/letsencrypt