Explorar o código

Merge pull request #1409 from nginx-proxy/no-https-redirect-acme

Bring ACME no redirection inline with companion
Nicolas Duchon %!s(int64=4) %!d(string=hai) anos
pai
achega
bf2d7295d3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      nginx.tmpl

+ 2 - 1
nginx.tmpl

@@ -253,8 +253,9 @@ server {
 	{{ $access_log }}
 	
 	# Do not HTTPS redirect Let'sEncrypt ACME challenge
-	location /.well-known/acme-challenge/ {
+	location ^~ /.well-known/acme-challenge/ {
 		auth_basic off;
+		auth_request off;
 		allow all;
 		root /usr/share/nginx/html;
 		try_files $uri =404;