1
0
Files
synapse/scripts-dev/workers_setup/worker.yaml.j2
Olivier Wilkinson (reivilibre) a0e699b301 STASH
2022-02-24 17:10:23 +00:00

27 lines
711 B
Django/Jinja
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{# TODO worker apps! #}
{% if worker.kind == "main" %}
worker_app: synapse.app.homeserver
{% else %}
worker_app: synapse.app.generic_worker
worker_name: {{ worker_name }}
# The replication listener on the main synapse process.
worker_replication_host: {{ worker_ip }}
worker_replication_http_port: 9090
worker_listeners:
- type: http
port: 8080
resources:
- names:
- client
- federation
{% if worker.kind == "media" %}
- media
{% endif %}
worker_log_config: '{{ workers_dir }}/{{ worker_name }}.logging.yaml'
worker_pid_file: '{{ logs_dir }}/{{ worker_name }}.pid'
{% endif %}
{% set main_worker = workers_by_name.main %}
worker_main_http_uri: http://{{ main_worker.ip }}:8080