nginx: fix inconsistencies in certbox public file directory
Some where referring to /var/www/html, some to /var/www/certbot: now everything should be in /var/www/html, that should fix certificate renewal
This commit is contained in:
@@ -69,7 +69,7 @@ services:
|
|||||||
- ./nginx/templates:/etc/nginx/templates/
|
- ./nginx/templates:/etc/nginx/templates/
|
||||||
- ./nginx/snippets:/etc/nginx/snippets
|
- ./nginx/snippets:/etc/nginx/snippets
|
||||||
- inventaire-server:/opt/inventaire
|
- inventaire-server:/opt/inventaire
|
||||||
- certbot-www:/var/www/certbot
|
- certbot-www:/var/www/html
|
||||||
- ./certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- nginx-cache:/tmp/nginx
|
- nginx-cache:/tmp/nginx
|
||||||
env_file: .env
|
env_file: .env
|
||||||
@@ -81,9 +81,9 @@ services:
|
|||||||
image: certbot/certbot:latest
|
image: certbot/certbot:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- certbot-www:/var/www/certbot
|
- certbot-www:/var/www/html
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot -w /var/www/certbot; sleep 12h & wait $${!}; done;"
|
entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew --webroot -w /var/www/html; sleep 12h & wait $${!}; done;"
|
||||||
depends_on:
|
depends_on:
|
||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ server {
|
|||||||
location ^~ '/.well-known/acme-challenge' {
|
location ^~ '/.well-known/acme-challenge' {
|
||||||
include /etc/nginx/snippets/security_headers.conf;
|
include /etc/nginx/snippets/security_headers.conf;
|
||||||
default_type "text/plain";
|
default_type "text/plain";
|
||||||
root /var/www/certbot;
|
root /var/www/html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|||||||
Reference in New Issue
Block a user