mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 22:31:56 -06:00
Route several paths to sync_api (#1473)
This commit is contained in:
parent
4e8c484618
commit
3bd66ff196
|
@ -18,6 +18,17 @@ server {
|
||||||
return 200 '{ "m.homeserver": { "base_url": "https://my.hostname.com" } }';
|
return 200 '{ "m.homeserver": { "base_url": "https://my.hostname.com" } }';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# route requests to:
|
||||||
|
# /_matrix/client/.*/sync
|
||||||
|
# /_matrix/client/.*/user/{userId}/filter
|
||||||
|
# /_matrix/client/.*/user/{userId}/filter/{filterID}
|
||||||
|
# /_matrix/client/.*/keys/changes
|
||||||
|
# /_matrix/client/.*/rooms/{roomId}/messages
|
||||||
|
# to sync_api
|
||||||
|
location ~ /_matrix/client/.*?/(sync|user/.*?/filter/?.*|keys/changes|rooms/.*?/messages)$ {
|
||||||
|
proxy_pass http://sync_api:8073;
|
||||||
|
}
|
||||||
|
|
||||||
location /_matrix/client {
|
location /_matrix/client {
|
||||||
proxy_pass http://client_api:8071;
|
proxy_pass http://client_api:8071;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue