mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-04 23:36:32 +00:00
Merge pull request #1161 from bookwyrm-social/fix-certbot
Reverts to functional certbot configuration
This commit is contained in:
commit
90021ab0e4
3 changed files with 2 additions and 23 deletions
|
@ -49,6 +49,3 @@ EMAIL_HOST_USER=mail@your.domain.here
|
||||||
EMAIL_HOST_PASSWORD=emailpassword123
|
EMAIL_HOST_PASSWORD=emailpassword123
|
||||||
EMAIL_USE_TLS=true
|
EMAIL_USE_TLS=true
|
||||||
EMAIL_USE_SSL=false
|
EMAIL_USE_SSL=false
|
||||||
|
|
||||||
# Set this to true when initializing certbot for domain, false when not
|
|
||||||
CERTBOT_INIT=false
|
|
||||||
|
|
19
certbot.sh
19
certbot.sh
|
@ -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
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue