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