From 0b59268aa8715e4ff4d4d06a8632096a111c2574 Mon Sep 17 00:00:00 2001
From: hoellen <dev@hoellen.eu>
Date: Sun, 5 Dec 2021 21:27:34 +0100
Subject: [PATCH] Change .well-known regex

---
 rootfs/etc/nginx/conf.d/default.conf | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rootfs/etc/nginx/conf.d/default.conf b/rootfs/etc/nginx/conf.d/default.conf
index bac0953..0ce67f8 100644
--- a/rootfs/etc/nginx/conf.d/default.conf
+++ b/rootfs/etc/nginx/conf.d/default.conf
@@ -30,10 +30,10 @@ server {
             access_log off;
         }
 
-        location /.well-known {
+        location ^~ /.well-known {
             location = /.well-known/carddav   { return 301 $nc_proto://$host/remote.php/dav; }
             location = /.well-known/caldav    { return 301 $nc_proto://$host/remote.php/dav; }
-            location ^~ /.well-known          { return 301 $nc_proto://$host/index.php$uri; }
+            location ^~ /.well-known          { return 301 $nc_proto://$host/index.php$uri;  }
             try_files $uri $uri/ =404;
         }