Skip to content

Commit

Permalink
Add a matrix_synapse_redis_use_tls variable
Browse files Browse the repository at this point in the history
Fixes #4113
  • Loading branch information
spantaleev committed Feb 26, 2025
1 parent 78b60be commit 1eea92b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions roles/custom/matrix-synapse/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ matrix_synapse_redis_host: ""
matrix_synapse_redis_port: 6379
matrix_synapse_redis_password: ""
matrix_synapse_redis_dbid: 0
matrix_synapse_redis_use_tls: false

# Controls whether Synapse starts a replication listener necessary for workers.
#
Expand Down
15 changes: 9 additions & 6 deletions roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2919,20 +2919,23 @@ media_instance_running_background_jobs: {{ matrix_synapse_media_instance_running
redis:
# Uncomment the below to enable Redis support.
#
enabled: {{ matrix_synapse_redis_enabled }}
enabled: {{ matrix_synapse_redis_enabled | to_json }}

# Optional host and port to use to connect to redis. Defaults to
# localhost and 6379
#
host: {{ matrix_synapse_redis_host }}
port: {{ matrix_synapse_redis_port }}
host: {{ matrix_synapse_redis_host | to_json }}
port: {{ matrix_synapse_redis_port | to_json }}

# Optional database ID to connect to. Defaults to 0.
dbid: {{ matrix_synapse_redis_dbid }}
dbid: {{ matrix_synapse_redis_dbid | to_json }}

# Optional password if configured on the Redis instance
#
password: {{ matrix_synapse_redis_password }}
{% if matrix_synapse_redis_password %}
password: {{ matrix_synapse_redis_password | to_json }}
{% endif %}

use_tls: {{ matrix_synapse_redis_use_tls | to_json }}


## Background Updates ##
Expand Down

0 comments on commit 1eea92b

Please sign in to comment.