1
0
Fork 0
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:
tituspijean 2022-08-25 16:38:40 +02:00
parent e1e17dca83
commit 4ce4697bc5
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720

View file

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