1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Merge pull request #284 from YunoHost-Apps/fix-multi-instance

Fix nginx conf
This commit is contained in:
Maniack Crudelis 2020-04-05 12:14:04 +02:00 committed by GitHub
commit 436410788a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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__/ {