nginx: update /_matrix/media location

Signed-off-by: creme <creme@envs.net>
This commit is contained in:
creme 2022-09-29 12:54:14 +00:00
parent 93625b57a8
commit 73515203d0
1 changed files with 5 additions and 5 deletions

View File

@ -68,24 +68,24 @@ server {
## matrix
location /.well-known/matrix/support {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Origin '*';
add_header Content-Type application/json;
return 200 '{"admins": [{"matrix_id": "@creme:envs.net", "email_address": "hostmaster@envs.net", "role": "admin"}], "support_page": "https://matrix.to/#/#envs:envs.net"}';
}
location /.well-known/matrix/server {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Origin '*';
add_header Content-Type application/json;
return 200 '{"m.server": "matrix.envs.net:443"}';
}
location /.well-known/matrix {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Origin '*';
add_header Content-Type application/json;
return 200 '{"m.homeserver": {"base_url": "https://matrix.envs.net"}, "m.integrations": {"managers": [{"ui_url": "https://dimension.envs.net/riot", "api_url": "https://dimension.envs.net/api/v1/scalar"}, {"ui_url": "https://scalar.vector.im/", "api_url": "https://scalar.vector.im/api"}]}, "m.integrations_widget": {"url": "https://dimension.envs.net/riot", "data": {"api_url": "https://dimension.envs.net/api/v1/scalar"}}}';
return 200 '{"m.homeserver": {"base_url": "https://matrix.envs.net"}, "m.integrations": {"managers": [{"ui_url": "https://dimension.envs.net/riot", "api_url": "https://dimension.envs.net/api/v1/scalar"}, {"ui_url": "https://scalar.vector.im/", "api_url": "https://scalar.vector.im/api"}]}, "m.integrations_widget": {"url": "https://dimension.envs.net/riot", "data": {"api_url": "https://dimension.envs.net/api/v1/scalar"}}, "m.tile_server": {"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=jrKVgM1ozvdgREfvtZ8X"}}';
}
location ~ ^(/_matrix|/_synapse/client) {
location ^~ /_matrix/media {
include proxy_params;
proxy_ssl_name $http_host;
proxy_ssl_server_name on;