3
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2026-03-26 06:27:23 +00:00

improve synapse redis socket mounting

This commit is contained in:
Aine
2026-03-08 09:56:26 +00:00
parent 45d5ebd008
commit 82caf3a7d3
3 changed files with 11 additions and 7 deletions

View File

@@ -1250,9 +1250,11 @@ matrix_synapse_redis_port: 6379
# Connection option 2: Unix socket (takes precedence over TCP if `matrix_synapse_redis_path` is set)
# disabled by default
matrix_synapse_redis_path_enabled: false
# the path to the redis socket inside the container, Synapse default's is "/tmp/redis.sock"
matrix_synapse_redis_path: ""
# the path to the redis socket on the host, e.g., "/matrix/valkey/run/valkey.sock"
# the path to the redis socket's parent dir (/tmp, not /tmp/redis.sock file) inside the container, Synapse default's is "/tmp/redis.sock"
matrix_synapse_redis_path: "/tmp"
# the filename of the redis socket, inside the container, Synapse default's is "redis.sock"
matrix_synapse_redis_path_socket: "/redis.sock"
# the path to the redis socket on the host, e.g., "/matrix/valkey/run" (parent dir, not the socket file itself).
matrix_synapse_redis_path_host: ""
# Controls whether Synapse starts a replication listener necessary for workers.

View File

@@ -2934,7 +2934,7 @@ redis:
# The full path to a local Unix socket file. If this is used, host and port are ignored.
{% if matrix_synapse_redis_path_enabled %}
path: {{ matrix_synapse_redis_path | to_json }}
path: {{ (matrix_synapse_redis_path + matrix_synapse_redis_path_socket) | to_json }}
{% endif %}
# Optional database ID to connect to. Defaults to 0.