Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 8a486e5

Browse files
committed
Mark relations as usable on workers.
1 parent ddcb52e commit 8a486e5

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

changelog.d/14028.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The `/relations` endpoint can now be used on workers.

docker/configure_workers_and_start.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,33 @@
107107
"shared_extra_conf": {},
108108
"worker_extra_conf": "",
109109
},
110+
"client_reader": {
111+
"app": "synapse.app.generic_worker",
112+
"listener_resources": ["client"],
113+
"endpoint_patterns": [
114+
"^/_matrix/client/(api/v1|r0|v3|unstable)/publicRooms$",
115+
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/joined_members$",
116+
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/context/.*$",
117+
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$",
118+
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$",
119+
"^/_matrix/client/v1/rooms/.*/hierarchy$",
120+
"^/_matrix/client/(v1|unstable)/rooms/.*/relations/",
121+
"^/_matrix/client/(api/v1|r0|v3|unstable)/login$",
122+
"^/_matrix/client/(api/v1|r0|v3|unstable)/account/3pid$",
123+
"^/_matrix/client/(api/v1|r0|v3|unstable)/account/whoami$",
124+
"^/_matrix/client/versions$",
125+
"^/_matrix/client/(api/v1|r0|v3|unstable)/voip/turnServer$",
126+
"^/_matrix/client/(r0|v3|unstable)/register$",
127+
"^/_matrix/client/(r0|v3|unstable)/auth/.*/fallback/web$",
128+
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/messages$",
129+
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/event",
130+
"^/_matrix/client/(api/v1|r0|v3|unstable)/joined_rooms",
131+
"^/_matrix/client/(api/v1|r0|v3|unstable/.*)/rooms/.*/aliases",
132+
"^/_matrix/client/(api/v1|r0|v3|unstable)/search",
133+
],
134+
"shared_extra_conf": {},
135+
"worker_extra_conf": "",
136+
},
110137
"federation_reader": {
111138
"app": "synapse.app.generic_worker",
112139
"listener_resources": ["federation"],

docs/workers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ information.
203203
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$
204204
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$
205205
^/_matrix/client/v1/rooms/.*/hierarchy$
206+
^/_matrix/client/(v1|unstable)/rooms/.*/relations/
206207
^/_matrix/client/unstable/org.matrix.msc2716/rooms/.*/batch_send$
207208
^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$
208209
^/_matrix/client/(r0|v3|unstable)/account/3pid$

0 commit comments

Comments
 (0)