2020-04-10 23:44:53 +02:00
|
|
|
#jinja2: lstrip_blocks: "True"
|
2021-01-25 11:14:46 +01:00
|
|
|
worker_app: synapse.app.{{ matrix_synapse_worker_details.type }}
|
|
|
|
worker_name: {{ matrix_synapse_worker_details.type ~ ':' ~ matrix_synapse_worker_details.port }}
|
2020-04-10 23:44:53 +02:00
|
|
|
|
2021-01-25 11:14:46 +01:00
|
|
|
worker_replication_host: matrix-synapse
|
2020-04-10 23:44:53 +02:00
|
|
|
worker_replication_http_port: {{ matrix_synapse_replication_http_port }}
|
|
|
|
|
|
|
|
worker_listeners:
|
2021-01-25 11:14:46 +01:00
|
|
|
{% if matrix_synapse_worker_details.type not in [ 'appservice', 'federation_sender', 'pusher' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
- type: http
|
2021-01-25 11:29:47 +01:00
|
|
|
bind_addresses: ['::']
|
2021-01-25 11:14:46 +01:00
|
|
|
port: {{ matrix_synapse_worker_details.port }}
|
2020-04-10 23:44:53 +02:00
|
|
|
resources:
|
|
|
|
- names:
|
2021-01-25 11:14:46 +01:00
|
|
|
{% if matrix_synapse_worker_details.type in [ 'generic_worker', 'frontend_proxy', 'user_dir' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
- client
|
2020-09-09 19:57:49 +02:00
|
|
|
{% endif %}
|
2021-01-25 11:14:46 +01:00
|
|
|
{% if matrix_synapse_worker_details.type in [ 'generic_worker' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
- federation
|
2021-01-25 11:14:46 +01:00
|
|
|
{% elif matrix_synapse_worker_details.type in [ 'media_repository' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
- media
|
|
|
|
{% endif %}
|
2020-12-01 23:49:23 +01:00
|
|
|
{% endif %}
|
2021-01-25 11:24:12 +01:00
|
|
|
{% if matrix_synapse_metrics_enabled %}
|
2020-12-01 22:49:15 +01:00
|
|
|
- type: metrics
|
2021-01-25 11:29:47 +01:00
|
|
|
bind_addresses: ['::']
|
2021-01-25 11:14:46 +01:00
|
|
|
port: {{ matrix_synapse_worker_details.metrics_port }}
|
2021-01-25 11:24:12 +01:00
|
|
|
{% endif %}
|
2020-12-01 22:49:15 +01:00
|
|
|
|
2021-01-25 11:14:46 +01:00
|
|
|
{% if matrix_synapse_worker_details.type == 'frontend_proxy' %}
|
|
|
|
worker_main_http_uri: http://matrix-synapse:8008
|
2020-04-10 23:44:53 +02:00
|
|
|
{% endif %}
|
2020-08-28 13:53:39 +02:00
|
|
|
|
2020-04-10 23:44:53 +02:00
|
|
|
worker_daemonize: false
|
|
|
|
worker_log_config: /data/{{ matrix_server_fqn_matrix }}.log.config
|