@@ -7,10 +7,21 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
7
7
{ {- define " element-io.synapse.process.hasHttp" -} }
8
8
{ {- $root := .root -} }
9
9
{ {- with required " element-io.synapse.process.hasHttp missing context" .context -} }
10
- { { $hasHttp := (list " main" " client-reader" " encryption" " event-creator"
11
- " federation-inbound" " federation-reader" " initial-synchrotron"
12
- " media-repository" " presence-writer" " receipts-account"
13
- " sliding-sync" " sso-login" " synchrotron" " typing-persister"
10
+ { { $hasHttp := (list " main"
11
+ " client-reader"
12
+ " encryption"
13
+ " event-creator"
14
+ " federation-inbound"
15
+ " federation-reader"
16
+ " initial-synchrotron"
17
+ " media-repository"
18
+ " presence-writer"
19
+ " push-rules"
20
+ " receipts-account"
21
+ " sliding-sync"
22
+ " sso-login"
23
+ " synchrotron"
24
+ " typing-persister"
14
25
" user-dir" ) } }
15
26
{ {- if has . $hasHttp -} }
16
27
hasHttp
@@ -21,8 +32,12 @@ hasHttp
21
32
{ {- define " element-io.synapse.process.hasReplication" -} }
22
33
{ {- $root := .root -} }
23
34
{ {- with required " element-io.synapse.process.hasReplication missing context" .context -} }
24
- { {- $hasReplication := (list " main" " encryption" " event-persister"
25
- " presence-writer" " receipts-account"
35
+ { {- $hasReplication := (list " main"
36
+ " encryption"
37
+ " event-persister"
38
+ " push-rules"
39
+ " presence-writer"
40
+ " receipts-account"
26
41
" typing-persister" ) } }
27
42
{ {- if has . $hasReplication -} }
28
43
hasReplication
@@ -33,9 +48,17 @@ hasReplication
33
48
{ {- define " element-io.synapse.process.isSingle" -} }
34
49
{ {- $root := .root -} }
35
50
{ {- with required " element-io.synapse.process.isSingle missing context" .context -} }
36
- { { $isSingle := (list " main" " appservice" " background" " encryption"
37
- " media-repository" " presence-writer" " receipts-account"
38
- " sso-login" " typing-persister" " user-dir" ) } }
51
+ { { $isSingle := (list " main"
52
+ " appservice"
53
+ " background"
54
+ " encryption"
55
+ " media-repository"
56
+ " presence-writer"
57
+ " push-rules"
58
+ " receipts-account"
59
+ " sso-login"
60
+ " typing-persister"
61
+ " user-dir" ) } }
39
62
{ {- if has . $isSingle -} }
40
63
isSingle
41
64
{ {- end -} }
@@ -96,6 +119,8 @@ responsibleForMedia
96
119
{ { list " events" | toJson } }
97
120
{ {- else if eq . " presence-writer" } }
98
121
{ { list " presence" | toJson } }
122
+ { {- else if eq . " push-rules" } }
123
+ { { list " push_rules" | toJson } }
99
124
{ {- else if eq . " receipts-account" } }
100
125
{ { list " account_data" " receipts" | toJson } }
101
126
{ {- else if eq . " typing-persister" } }
@@ -177,7 +202,7 @@ responsibleForMedia
177
202
"^/_matrix/client/v1/rooms/.*/hierarchy$"
178
203
"^/_matrix/client/(v1|unstable)/rooms/.*/relations/"
179
204
"^/_matrix/client/v1/rooms/.*/threads$"
180
- "^/_matrix/client/unstable/im.nheko.summary/rooms /.*/summary $"
205
+ "^/_matrix/client/unstable/im.nheko.summary/summary /.*$"
181
206
"^/_matrix/client/(r0|v3|unstable)/account/3pid$"
182
207
"^/_matrix/client/(r0|v3|unstable)/account/whoami$"
183
208
"^/_matrix/client/(r0|v3|unstable)/devices$"
@@ -304,6 +329,13 @@ responsibleForMedia
304
329
}}
305
330
{{- end }}
306
331
332
+ {{- if eq .workerType "push-rules" }}
333
+ {{ $workerPaths = append $workerPaths (list
334
+ "^/_matrix/client/(api/v1|r0|v3|unstable)/pushrules/"
335
+ "^/_matrix/client/unstable/org.matrix.msc4140/delayed_events"
336
+ ) }}
337
+ {{- end }}
338
+
307
339
{{- if eq .workerType "receipts-account" }}
308
340
{{ $workerPaths = concat $workerPaths (list
309
341
"^/_matrix/client/(r0|v3|unstable)/.*/tags"
0 commit comments