diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index 4294aca39..48bc54caf 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -4844,9 +4844,12 @@ matrix_synapse_redis_enabled: "{{ valkey_enabled }}" matrix_synapse_redis_host: "{{ valkey_identifier if valkey_enabled else '' }}" matrix_synapse_redis_password: "{{ valkey_connection_password if valkey_enabled else '' }}" -matrix_synapse_redis_path_enabled: false # temporarily, then switch to true by default once properly tested -matrix_synapse_redis_path: "{{ '/tmp/redis.sock' if valkey_enabled else '' }}" # default value for Synapse -matrix_synapse_redis_path_host: "{{ valkey_run_path+'/valkey.sock' if valkey_enabled else '' }}" # path on the host +# unix socket connection, disabled by default temporarily until properly tested +matrix_synapse_redis_path_enabled: false +# path to the Redis socket inside the Synapse container, using Synapse's default value +matrix_synapse_redis_path: "{{ '/tmp/redis.sock' if valkey_enabled else '' }}" +# path to the Redis socket on the host, using Valkey +matrix_synapse_redis_path_host: "{{ valkey_run_path+'/valkey.sock' if valkey_enabled else '' }}" matrix_synapse_container_extra_arguments_auto: "{{ matrix_homeserver_container_extra_arguments_auto }}" matrix_synapse_app_service_config_files_auto: "{{ matrix_homeserver_app_service_config_files_auto }}" diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 336d1824a..acb84c89a 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -1248,9 +1248,12 @@ matrix_synapse_redis_use_tls: false matrix_synapse_redis_host: "" 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 -matrix_synapse_redis_path: "" # the path to the redis socket inside the container, e.g. "/var/run/redis.sock" -matrix_synapse_redis_path_host: "" # the path to the redis socket on the host, e.g. "/matrix/valkey/run/valkey.sock" +# 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" +matrix_synapse_redis_path_host: "" # Controls whether Synapse starts a replication listener necessary for workers. #