Browse Source

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

Bring ACME no redirection inline with companion
Nicolas Duchon 4 năm trước cách đây
mục cha
commit
bf2d7295d3
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;