mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 12:14:29 +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>
37 lines
995 B
Django/Jinja
37 lines
995 B
Django/Jinja
# This file contains the base config for supervisord, as part of ../Dockerfile-workers.
|
|
# configure_workers_and_start.py uses and amends to this file depending on the workers
|
|
# that have been selected.
|
|
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
|
|
[include]
|
|
files = /etc/supervisor/conf.d/*.conf
|
|
|
|
[program:nginx]
|
|
command=/usr/local/bin/prefix-log /usr/sbin/nginx -g "daemon off;"
|
|
priority=500
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
username=www-data
|
|
autorestart=true
|
|
|
|
[program:redis]
|
|
{% if using_unix_sockets %}
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/redis-server --unixsocket /tmp/redis.sock
|
|
{% else %}
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/redis-server
|
|
{% endif %}
|
|
priority=1
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
username=redis
|
|
autorestart=true
|
|
|
|
# Redis can be disabled if the image is being used without workers
|
|
autostart={{ enable_redis }}
|
|
|