Skip to content

Commit bf2d729

Browse files
authored
Merge pull request nginx-proxy#1409 from nginx-proxy/no-https-redirect-acme
Bring ACME no redirection inline with companion
2 parents c8a6785 + 944163d commit bf2d729

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nginx.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,9 @@ server {
253253
{{ $access_log }}
254254

255255
# Do not HTTPS redirect Let'sEncrypt ACME challenge
256-
location /.well-known/acme-challenge/ {
256+
location ^~ /.well-known/acme-challenge/ {
257257
auth_basic off;
258+
auth_request off;
258259
allow all;
259260
root /usr/share/nginx/html;
260261
try_files $uri =404;

0 commit comments

Comments
 (0)