From fb648fc9cf436b98ea95859aab2942b429709961 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Wed, 1 Apr 2020 17:38:30 +0200 Subject: [PATCH] Fix nginx conf --- conf/nginx.conf | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8f2b3fb..c4b73e1 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,18 +4,24 @@ location = /.well-known/carddav { location = /.well-known/caldav { return 301 https://$server_name__PATH__/remote.php/dav; } -location = /.well-known/host-meta { - return 301 $scheme://$host:$server_port__PATH__/public.php?service=host-meta; -} -location = /.well-known/host-meta.json { - return 301 $scheme://$host:$server_port__PATH__/public.php?service=host-meta-json; -} -location = /.well-known/webfinger { - return 301 $scheme://$host:$server_port__PATH__/public.php?service=webfinger; -} -location = /.well-known/nodeinfo { - return 301 $scheme://$host:$server_port__PATH__/public.php?service=nodeinfo; -} + +# The following 2 rules are only needed for the user_webfinger app. +# Uncomment it if you're planning to use this app. +#location = /.well-known/host-meta { +# return 301 $scheme://$host:$server_port__PATH__/public.php?service=host-meta; +#} +#location = /.well-known/host-meta.json { +# return 301 $scheme://$host:$server_port__PATH__/public.php?service=host-meta-json; +#} + +# The following 2 rules are only needed for the Social app. +# Uncomment it if you're planning to use this app. +#location = /.well-known/webfinger { +# return 301 $scheme://$host:$server_port__PATH__/public.php?service=webfinger; +#} +#location = /.well-known/nodeinfo { +# return 301 $scheme://$host:$server_port__PATH__/public.php?service=nodeinfo; +#} #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location ^~ __PATH__/ {