Skip to content

Commit

Permalink
fix: add tls config
Browse files Browse the repository at this point in the history
  • Loading branch information
gussf committed Jun 5, 2024
1 parent 111fba5 commit 51048f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extensions/rate_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package extensions

import (
"context"
"crypto/tls"
"errors"
"fmt"
"strconv"
Expand All @@ -26,8 +27,9 @@ func NewRateLimiter(config *viper.Viper, logger *logrus.Logger) rateLimiter {

addr := fmt.Sprintf("%s:%s", host, port)
rdb := redis.NewClient(&redis.Options{
Addr: addr,
Password: pwd,
Addr: addr,
Password: pwd,
TLSConfig: &tls.Config{},
})

return rateLimiter{
Expand Down

0 comments on commit 51048f4

Please sign in to comment.