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