From 944163d70d5f1df6f999d3c1fe952fd46bba0c84 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Fri, 20 Mar 2020 22:28:15 +0100 Subject: [PATCH] Bring ACME no redirection inline with companion Add the following to the Let's Encrypt ACME challenge "no redirection to HTTPS" https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion/pull/570 https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion/pull/335 --- nginx.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index 18f943a..2c3f36c 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -251,8 +251,9 @@ server { access_log /var/log/nginx/access.log vhost; # 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;