Skip to content

Commit

Permalink
Connect to Redis with TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelreiswildlife committed Jul 24, 2024
1 parent 5f7fd7d commit 37f87c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/adapters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37f87c5

Please sign in to comment.