2020-04-10 23:44:53 +02:00
|
|
|
#jinja2: lstrip_blocks: "True"
|
2020-10-28 07:13:19 +01:00
|
|
|
worker_app: synapse.app.{{ item.type }}
|
|
|
|
worker_name: {{ item.type ~ ':' ~ item.port }}
|
2020-04-10 23:44:53 +02:00
|
|
|
|
|
|
|
worker_replication_host: 127.0.0.1
|
|
|
|
worker_replication_http_port: {{ matrix_synapse_replication_http_port }}
|
|
|
|
|
2020-10-28 07:13:19 +01:00
|
|
|
{% if item.type not in [ 'appservice', 'federation_sender', 'pusher' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
worker_listeners:
|
|
|
|
- type: http
|
|
|
|
port: {{ item.port }}
|
|
|
|
resources:
|
|
|
|
- names:
|
2020-10-28 07:13:19 +01:00
|
|
|
{% if item.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 %}
|
2020-10-28 07:13:19 +01:00
|
|
|
{% if item.type in [ 'generic_worker' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
- federation
|
2020-10-28 07:13:19 +01:00
|
|
|
{% elif item.type in [ 'media_repository' ] %}
|
2020-04-10 23:44:53 +02:00
|
|
|
- media
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-10-28 07:13:19 +01:00
|
|
|
{% if item.type == 'frontend_proxy' %}
|
2020-04-10 23:44:53 +02:00
|
|
|
worker_main_http_uri: http://127.0.0.1:8008
|
|
|
|
{% 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
|