chore(synapse): update pusher config

This commit is contained in:
Lars Kaiser 2023-05-25 14:40:20 +02:00
parent 1153e4e732
commit 411c78b65d
No known key found for this signature in database
GPG key ID: BB97304A16BC5DCF
3 changed files with 17 additions and 4 deletions

View file

@ -24,6 +24,19 @@
federation_sender_instances: "{{ matrix_synapse_worker_fed_senders }}"
when: matrix_synapse_workers_federation_out|int > 0
- name: Merge federation sender costum config into homeserver config
- name: Build homeserver pusher override
set_fact:
matrix_synapse_worker_config: "{{ [ matrix_synapse_worker_config, matrix_synapse_fed_sender_override, matrix_synapse_media_worker_override ] | combine(recursive=True) }}"
matrix_synapse_pusher_override:
pusher_instances: "worker_pusher"
when: matrix_synapse_worker_push
- name: Merge worker config into homeserver config
set_fact:
matrix_synapse_worker_config: >-2
{{
[ matrix_synapse_worker_config,
matrix_synapse_media_worker_override,
matrix_synapse_fed_sender_override,
matrix_synapse_pusher_override
] | combine(recursive=True)
}}

View file

@ -123,7 +123,7 @@
worker_pusher_info: "{{ [ worker_config ] }}"
vars:
name: "worker_pusher"
app: "synapse.app.pusher"
app: "synapse.app.generic_worker"
config_file: "{{ matrix_synapse_base_path }}/{{ name }}.yaml"
worker_labels:
labels: "{{ matrix_synapse_worker_labels_base }}"

View file

@ -11,12 +11,12 @@ matrix_synapse_config: "{{ matrix_synapse_base_config | combine(matrix_synapse_e
# Worker-specific config
matrix_synapse_media_worker_override: {}
matrix_synapse_fed_sender_override: {}
matrix_synapse_pusher_override: {}
matrix_synapse_worker_fed_senders: []
matrix_synapse_worker_metrics_listener:
- type: metrics
port: "{{ matrix_synapse_worker_metrics_port }}"
matrix_synapse_worker_config:
start_pushers: "{{ not matrix_synapse_worker_push }}"
notify_appservices: "{{ not matrix_synapse_worker_appservice }}"
update_user_directory: "{{ not matrix_synapse_worker_user_search }}"
listeners: