From 37f87c54467c45baf8ba4f0bc8428741c7c9f0b4 Mon Sep 17 00:00:00 2001 From: Miguel dos Reis Date: Wed, 24 Jul 2024 15:04:16 -0300 Subject: [PATCH] Connect to Redis with TLS --- internal/service/adapters.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/service/adapters.go b/internal/service/adapters.go index b8142cb02..e4adea2ca 100644 --- a/internal/service/adapters.go +++ b/internal/service/adapters.go @@ -249,6 +249,10 @@ func createRedisClient(c config.Config, url string) (*redis.Client, error) { } opts.PoolSize = c.GetInt(redisPoolSizePath) + if opts.TLSConfig != nil { + opts.TLSConfig.InsecureSkipVerify = true + } + hostPort := strings.Split(opts.Addr, ":") client := redis.NewClient(opts)