Fix renew certificates issue with authenticated hosts.

This commit is contained in:
Mikaël Capelle 2025-05-27 12:38:26 +00:00
parent 87971f0ca6
commit d4676647cb
3 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ services:
container_name: nginx_proxy container_name: nginx_proxy
restart: always restart: always
ports: ports:
# port 80 is needed for ACME challenge with certbot
- "80:80" - "80:80"
- "443:443" - "443:443"
volumes: volumes:

View File

@ -205,6 +205,8 @@ server {
location /.well-known/acme-challenge { location /.well-known/acme-challenge {
root /var/www/certbot; root /var/www/certbot;
auth_request off;
auth_basic off;
} }
location / { location / {

View File

@ -4,3 +4,4 @@ auth_basic_user_file /etc/nginx/vhost.d/aoc_auth.htpasswd;
proxy_read_timeout 300; proxy_read_timeout 300;
proxy_connect_timeout 300; proxy_connect_timeout 300;
proxy_send_timeout 300; proxy_send_timeout 300;