From 64387098030bebf7d407716b6dcfd91ef7aed235 Mon Sep 17 00:00:00 2001 From: wgnathanael <141359876+wgnathanael@users.noreply.github.com> Date: Thu, 21 Mar 2024 08:10:17 -0600 Subject: [PATCH] Fix replication for TLS leader/follower configurations When a redis replication setup is done using TLS, the followers are unable to communicate with the leader as they won't use TLS without setting `tls-replication yes` --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a4da1ae..fa77ee1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -57,11 +57,11 @@ tls_setup() { echo tls-ca-cert-file "${REDIS_TLS_CA_KEY}" # echo tls-prefer-server-ciphers yes echo tls-auth-clients optional + echo tls-replication yes } >> /etc/redis/redis.conf if [[ "${SETUP_MODE}" == "cluster" ]]; then { - echo tls-replication yes echo tls-cluster yes echo cluster-preferred-endpoint-type hostname } >> /etc/redis/redis.conf