From 5d48fb76f648b91d79f7a7b48b76ca8518a771ad Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 8 Mar 2021 18:46:13 +0100 Subject: [PATCH] fix nginx conf --- conf/nginx.conf | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8a4ba50..9c565e8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,16 +5,12 @@ location ^~ /.well-known { # Uncomment it if you're planning to use this app. #rewrite ^/\.well-known/host-meta\.json __PATH__/public.php?service=host-meta-json last; #rewrite ^/\.well-known/host-meta __PATH__/public.php?service=host-meta last; - # The following 2 rules are only needed for the Social app. - # Uncomment it if you're planning to use this app. - #rewrite ^/\.well-known/webfinger __PATH__/public.php?service=webfinger last; - #rewrite ^/\.well-known/nodeinfo __PATH__/public.php?service=nodeinfo last; location = /.well-known/carddav { return 301 __PATH__/remote.php/dav/; } location = /.well-known/caldav { return 301 __PATH__/remote.php/dav/; } - # Anything else is dynamically handled by Nextcloud - location ^~ /.well-known { return 301 __PATH__/index.php$uri; } + location = /.well-known/webfinger { return 301 __PATH__/index.php$uri; } + location = /.well-known/nodeinfo { return 301 __PATH__/index.php$uri; } try_files $uri $uri/ =404; }