Browse Source

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

Fix nginx conf
pull/294/head
Maniack Crudelis 6 years ago
committed by GitHub
parent
commit
436410788a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      conf/nginx.conf

30
conf/nginx.conf

@ -4,18 +4,24 @@ location = /.well-known/carddav {
location = /.well-known/caldav { location = /.well-known/caldav {
return 301 https://$server_name__PATH__/remote.php/dav; 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; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location ^~ __PATH__/ { location ^~ __PATH__/ {

Loading…
Cancel
Save