From 532e8b498bfc4452644b2ecebb1d7ee160b5d75e Mon Sep 17 00:00:00 2001 From: Aine Date: Mon, 1 Apr 2024 23:24:40 +0300 Subject: [PATCH] add matrix_synapse_redis_dbid var --- roles/custom/matrix-synapse/defaults/main.yml | 1 + .../custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index 84bdd92d8..6c68c588b 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -1038,6 +1038,7 @@ matrix_synapse_redis_enabled: false matrix_synapse_redis_host: "" matrix_synapse_redis_port: 6379 matrix_synapse_redis_password: "" +matrix_synapse_redis_dbid: 0 # Controls whether Synapse starts a replication listener necessary for workers. # diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index b22178fcd..29f11d8e9 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -2921,6 +2921,9 @@ redis: host: {{ matrix_synapse_redis_host }} port: {{ matrix_synapse_redis_port }} + # Optional database ID to connect to. Defaults to 0. + dbid: {{ matrix_synapse_redis_dbid }} + # Optional password if configured on the Redis instance # password: {{ matrix_synapse_redis_password }}