aboutsummaryrefslogtreecommitdiff
path: root/docs/nginx
diff options
context:
space:
mode:
authorS7evinK <tfaelligen@gmail.com>2020-10-02 23:35:54 +0200
committerGitHub <noreply@github.com>2020-10-02 22:35:54 +0100
commit3bd66ff196a84b0c96763850228c379b2a124fb6 (patch)
treeb88627fd07c8a2bb7bacc321afc46bf2ef151f67 /docs/nginx
parent4e8c484618f5bfd5b7349cc2afd102cd5feb3861 (diff)
Route several paths to sync_api (#1473)
Diffstat (limited to 'docs/nginx')
-rw-r--r--docs/nginx/polylith-sample.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/nginx/polylith-sample.conf b/docs/nginx/polylith-sample.conf
index 658e0e4a..ab346184 100644
--- a/docs/nginx/polylith-sample.conf
+++ b/docs/nginx/polylith-sample.conf
@@ -18,6 +18,17 @@ server {
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 {
proxy_pass http://client_api:8071;
}