浏览代码

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

Bring ACME no redirection inline with companion
Nicolas Duchon 4 年之前
父节点
当前提交
bf2d7295d3
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;