mirror of
https://github.com/YunoHost-Apps/dendrite_ynh.git
synced 2024-09-03 18:25:58 +02:00
Avoid duplicate NGINX locations
This commit is contained in:
parent
e1e17dca83
commit
4ce4697bc5
1 changed files with 0 additions and 11 deletions
|
@ -4,17 +4,6 @@ location ~ ^/$ {
|
||||||
return 200 "This is where Dendrite is installed.";
|
return 200 "This is where Dendrite is installed.";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /.well-known/matrix/server {
|
|
||||||
default_type application/json;
|
|
||||||
return 200 '{ "m.server": "__DOMAIN__:443" }';
|
|
||||||
more_set_headers "Access-Control-Allow-Origin: *";
|
|
||||||
}
|
|
||||||
|
|
||||||
location /.well-known/matrix/client {
|
|
||||||
return 200 '{ "m.homeserver": { "base_url": "https://__DOMAIN__" } }';
|
|
||||||
more_set_headers "Access-Control-Allow-Origin: *";
|
|
||||||
}
|
|
||||||
|
|
||||||
location /_matrix {
|
location /_matrix {
|
||||||
proxy_pass http://localhost:__PORT__;
|
proxy_pass http://localhost:__PORT__;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue