@@ -7,10 +7,21 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
77{ {- define " element-io.synapse.process.hasHttp" -} }
88{ {- $root := .root -} }
99{ {- 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"
1425 " user-dir" ) } }
1526{ {- if has . $hasHttp -} }
1627hasHttp
@@ -21,8 +32,12 @@ hasHttp
2132{ {- define " element-io.synapse.process.hasReplication" -} }
2233{ {- $root := .root -} }
2334{ {- 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"
2641 " typing-persister" ) } }
2742{ {- if has . $hasReplication -} }
2843hasReplication
@@ -33,9 +48,17 @@ hasReplication
3348{ {- define " element-io.synapse.process.isSingle" -} }
3449{ {- $root := .root -} }
3550{ {- 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" ) } }
3962{ {- if has . $isSingle -} }
4063isSingle
4164{ {- end -} }
@@ -96,6 +119,8 @@ responsibleForMedia
96119{ { list " events" | toJson } }
97120{ {- else if eq . " presence-writer" } }
98121{ { list " presence" | toJson } }
122+ { {- else if eq . " push-rules" } }
123+ { { list " push_rules" | toJson } }
99124{ {- else if eq . " receipts-account" } }
100125{ { list " account_data" " receipts" | toJson } }
101126{ {- else if eq . " typing-persister" } }
@@ -177,7 +202,7 @@ responsibleForMedia
177202 "^/_matrix/client/v1/rooms/.*/hierarchy$"
178203 "^/_matrix/client/(v1|unstable)/rooms/.*/relations/"
179204 "^/_matrix/client/v1/rooms/.*/threads$"
180- "^/_matrix/client/unstable/im.nheko.summary/rooms /.*/summary $"
205+ "^/_matrix/client/unstable/im.nheko.summary/summary /.*$"
181206 "^/_matrix/client/(r0|v3|unstable)/account/3pid$"
182207 "^/_matrix/client/(r0|v3|unstable)/account/whoami$"
183208 "^/_matrix/client/(r0|v3|unstable)/devices$"
@@ -304,6 +329,13 @@ responsibleForMedia
304329}}
305330{{- end }}
306331
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+
307339{{- if eq .workerType "receipts-account" }}
308340{{ $workerPaths = concat $workerPaths (list
309341 "^/_matrix/client/(r0|v3|unstable)/.*/tags"
0 commit comments