mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-09-22 22:21:33 +02:00
76ed161b35
Add a break into the letsencrypt block so that no more rules are executed otherwise if you have a block like... ## Start of configuration add by letsencrypt container location /.well-known/acme-challenge/ { auth_basic off; root /usr/share/nginx/html; try_files $uri =404; } ## End of configuration add by letsencrypt container if (!-f /code/home/cookies/$cookie_AUTH_COOKIE) { rewrite ^ https://auth.example.org break; } Then lets encrypt never manages to verify the domain as the request gets re-written to the authentication URL.
7 lines
130 B
Plaintext
7 lines
130 B
Plaintext
location /.well-known/acme-challenge/ {
|
|
auth_basic off;
|
|
root /usr/share/nginx/html;
|
|
try_files $uri =404;
|
|
break;
|
|
}
|