From cd7c488713ae6a92aee370b95a86b81596c0b175 Mon Sep 17 00:00:00 2001 From: Eric Morino Date: Fri, 26 Nov 2021 16:37:00 +0100 Subject: [PATCH] Add rule .well-know to allow letsencrypt challenge --- webapps/nextcloud/templates/nginx.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/webapps/nextcloud/templates/nginx.conf.j2 b/webapps/nextcloud/templates/nginx.conf.j2 index 78532377..c2b7b7e3 100644 --- a/webapps/nextcloud/templates/nginx.conf.j2 +++ b/webapps/nextcloud/templates/nginx.conf.j2 @@ -46,6 +46,7 @@ server { location = /.well-known/caldav { return 301 /remote.php/dav/; } # Anything else is dynamically handled by Nextcloud location ^~ /.well-known { return 301 /index.php$uri; } + location ~ ^/.well-known/acme-challenge/* { allow all; } try_files $uri $uri/ =404; }