mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-23 10:05:55 +03:00
224ef0b669
Unix socket support for `federation` and `client` Listeners has existed now for a little while(since [1.81.0](https://github.com/matrix-org/synapse/pull/15353)), but there was one last hold out before it could be complete: HTTP Replication communication. This should finish it up. The Listeners would have always worked, but would have had no way to be talked to/at. --------- Co-authored-by: Eric Eastwood <madlittlemods@gmail.com> Co-authored-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by: Eric Eastwood <erice@element.io>
26 lines
618 B
Django/Jinja
26 lines
618 B
Django/Jinja
# This is a configuration template for a single worker instance, and is
|
|
# used by Dockerfile-workers.
|
|
# Values will be change depending on whichever workers are selected when
|
|
# running that image.
|
|
|
|
worker_app: "{{ app }}"
|
|
worker_name: "{{ name }}"
|
|
|
|
worker_listeners:
|
|
- type: http
|
|
{% if using_unix_sockets %}
|
|
path: "/run/worker.{{ port }}"
|
|
{% else %}
|
|
port: {{ port }}
|
|
{% endif %}
|
|
{% if listener_resources %}
|
|
resources:
|
|
- names:
|
|
{%- for resource in listener_resources %}
|
|
- {{ resource }}
|
|
{%- endfor %}
|
|
{% endif %}
|
|
|
|
worker_log_config: {{ worker_log_config_filepath }}
|
|
|
|
{{ worker_extra_conf }}
|