Ver código fonte

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

Bring ACME no redirection inline with companion
Nicolas Duchon 4 anos atrás
pai
commit
bf2d7295d3
1 arquivos alterados com 2 adições e 1 exclusões
  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;