Skip to content

Commit

Permalink
ServerName for redis tls
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Nov 5, 2023
1 parent 5d58d53 commit 01abe4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ func Start(dbO *sqlx.DB) *fhr.Router {
// initialise redis
var tlsConfig *tls.Config
if settings.REDIS_USE_SSL {
tlsConfig = &tls.Config{}
tlsConfig = &tls.Config{
ServerName: "*.c.db.ondigitalocean.com",
}
}
red = redis.NewClient(&redis.Options{
Addr: fmt.Sprintf("%s:%d", settings.REDIS_HOST, settings.REDIS_PORT),
Expand Down

0 comments on commit 01abe4c

Please sign in to comment.