mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-14 12:16:31 +00:00
Merge pull request #464 from mouse-reeve/certbot-renew
Fixes acme challenge path for certbot renewal
This commit is contained in:
commit
34ccf60868
2 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,7 @@ services:
|
|||
certbot:
|
||||
image: certbot/certbot:latest
|
||||
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:
|
||||
- ./certbot/conf:/etc/letsencrypt
|
||||
- ./certbot/logs:/var/log/letsencrypt
|
||||
|
|
|
@ -27,6 +27,11 @@ server {
|
|||
ssl_certificate /etc/nginx/ssl/live/your-domain.com/fullchain.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/live/your-domain.com/privkey.pem;
|
||||
|
||||
location ~ /.well-known/acme-challenge {
|
||||
allow all;
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in a new issue