Browse Source

add matrix_synapse_redis_dbid var

pull/3251/head
Aine 1 year ago
parent
commit
532e8b498b
No known key found for this signature in database GPG Key ID: 34969C908CCA2804
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      roles/custom/matrix-synapse/defaults/main.yml
  2. +3
    -0
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 1
- 0
roles/custom/matrix-synapse/defaults/main.yml View File

@@ -1038,6 +1038,7 @@ matrix_synapse_redis_enabled: false
matrix_synapse_redis_host: "" matrix_synapse_redis_host: ""
matrix_synapse_redis_port: 6379 matrix_synapse_redis_port: 6379
matrix_synapse_redis_password: "" matrix_synapse_redis_password: ""
matrix_synapse_redis_dbid: 0


# Controls whether Synapse starts a replication listener necessary for workers. # Controls whether Synapse starts a replication listener necessary for workers.
# #


+ 3
- 0
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 View File

@@ -2921,6 +2921,9 @@ redis:
host: {{ matrix_synapse_redis_host }} host: {{ matrix_synapse_redis_host }}
port: {{ matrix_synapse_redis_port }} 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 # Optional password if configured on the Redis instance
# #
password: {{ matrix_synapse_redis_password }} password: {{ matrix_synapse_redis_password }}


Loading…
Cancel
Save