Skip to content

Commit 944163d

Browse files
authored
Bring ACME no redirection inline with companion
Add the following to the Let's Encrypt ACME challenge "no redirection to HTTPS" nginx-proxy/acme-companion#570 nginx-proxy/acme-companion#335
1 parent 941fd63 commit 944163d

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
@@ -251,8 +251,9 @@ server {
251251
access_log /var/log/nginx/access.log vhost;
252252

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

0 commit comments

Comments
 (0)