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; }