From a51e613627c198269cc78785aa595d09d746586e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 30 Jan 2021 10:48:12 +0000 Subject: [PATCH] Fix to exclude acme-challenge from HTTPS redirect --- nginx/http.template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/http.template b/nginx/http.template index 1258635..4ecc479 100644 --- a/nginx/http.template +++ b/nginx/http.template @@ -6,5 +6,11 @@ server { server_name groups.${SNIKKET_DOMAIN}; server_name share.${SNIKKET_DOMAIN}; - return 301 https://$host$request_uri; + location /.well-known/acme-challenge { + alias /var/www/html/.well-known/acme-challenge; + } + + location / { + return 301 https://$host$request_uri; + } }