From ca07368d7284ee94cb43f35415628a736df703c9 Mon Sep 17 00:00:00 2001 From: drivebyer Date: Wed, 18 Sep 2024 17:39:28 +0800 Subject: [PATCH] fix: slave connect to master when tls enable Signed-off-by: drivebyer --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4ab74b7..1cf6d9f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -59,9 +59,12 @@ tls_setup() { echo tls-auth-clients optional } >> /etc/redis/redis.conf + { + echo tls-replication yes + } >> /etc/redis/redis.conf + if [[ "${SETUP_MODE}" == "cluster" ]]; then { - echo tls-replication yes echo tls-cluster yes } >> /etc/redis/redis.conf