Skip to content

Commit

Permalink
Allow tls option
Browse files Browse the repository at this point in the history
  • Loading branch information
sergionoviello committed Mar 28, 2024
1 parent 1046d40 commit 4ce9059
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configurator.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ function parseUrl (redisUrl) {
// the password part of user:pass format
config.redis_auth = parsedUrl.auth.substr(parsedUrl.auth.indexOf(':') + 1)
}

if (redisUrl.startsWith('rediss://')) {
config.tls = {};
}

return config
}

Expand Down

0 comments on commit 4ce9059

Please sign in to comment.