Skip to content

Commit

Permalink
Fix parameter cluster-preferred-endpoint-type is incompatible with re…
Browse files Browse the repository at this point in the history
…dis version 6

Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Jul 31, 2024
1 parent b369411 commit 2318d1a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ tls_setup() {
{
echo tls-replication yes
echo tls-cluster yes
echo cluster-preferred-endpoint-type hostname
} >> /etc/redis/redis.conf

if [[ "${REDIS_MAJOR_VERSION}" == "v7" ]]; then
{
echo cluster-preferred-endpoint-type hostname
} >> /etc/redis/redis.conf
fi
fi
else
echo "Running without TLS mode"
Expand Down

0 comments on commit 2318d1a

Please sign in to comment.