mirror of
https://git.envs.net/envs/matrix-conf.git
synced 2025-07-28 01:15:23 -04:00
update configs
This commit is contained in:
parent
a122269cbe
commit
9f5bea7694
9 changed files with 158 additions and 27 deletions
|
@ -14,7 +14,7 @@ location ~ ^/_matrix/client/(r0|v3)/sync$ {
|
|||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3)/events$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
proxy_pass http://localhost:8083;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3)/initialSync$ {
|
||||
|
@ -94,6 +94,11 @@ location ~ ^/_matrix/federation/v1/event_auth/ {
|
|||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/federation/v1/timestamp_to_event/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/federation/v1/exchange_third_party_invite/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
|
@ -213,6 +218,11 @@ location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms$ {
|
|||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/v1/rooms/.*/timestamp_to_event$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
location ~ ^/_matrix/client/(api/v1|r0|v3|unstable)/search$ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
|
@ -240,7 +250,6 @@ location ~ ^/_matrix/client/(r0|v3|unstable)/room_keys/ {
|
|||
proxy_pass http://generic_worker_lc;
|
||||
}
|
||||
|
||||
# Note that ^/_matrix/client/(r0|v3|unstable)/keys/upload/ requires `worker_main_http_uri`
|
||||
location ~ ^/_matrix/client/(r0|v3|unstable)/keys/upload/ {
|
||||
include include.d/synapse-proxy.conf;
|
||||
proxy_pass http://generic_worker_lc;
|
||||
|
|
56
etc/nginx/include.d/synapse-wellknown.conf
Normal file
56
etc/nginx/include.d/synapse-wellknown.conf
Normal file
|
@ -0,0 +1,56 @@
|
|||
# matrix/support
|
||||
location /.well-known/matrix/support {
|
||||
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"
|
||||
}';
|
||||
}
|
||||
|
||||
# matrix/server
|
||||
location /.well-known/matrix/server {
|
||||
add_header Access-Control-Allow-Origin '*';
|
||||
add_header Content-Type application/json;
|
||||
return 200 '{
|
||||
"m.server": "matrix.envs.net:443"
|
||||
}';
|
||||
}
|
||||
|
||||
# matrix/client
|
||||
location /.well-known/matrix/client {
|
||||
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"
|
||||
}
|
||||
},
|
||||
"m.tile_server": {
|
||||
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=jrKVgM1ozvdgREfvtZ8X"
|
||||
}
|
||||
}';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue