Fix renew certificates issue with authenticated hosts.
This commit is contained in:
parent
87971f0ca6
commit
d4676647cb
@ -4,6 +4,7 @@ services:
|
||||
container_name: nginx_proxy
|
||||
restart: always
|
||||
ports:
|
||||
# port 80 is needed for ACME challenge with certbot
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
|
@ -205,6 +205,8 @@ server {
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
root /var/www/certbot;
|
||||
auth_request off;
|
||||
auth_basic off;
|
||||
}
|
||||
|
||||
location / {
|
||||
|
@ -4,3 +4,4 @@ auth_basic_user_file /etc/nginx/vhost.d/aoc_auth.htpasswd;
|
||||
proxy_read_timeout 300;
|
||||
proxy_connect_timeout 300;
|
||||
proxy_send_timeout 300;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user