Skip to content

Commit

Permalink
feat(clouddriver): Add support for Redis SSL (#4962)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
tompiscitell and mergify[bot] committed Oct 8, 2020
1 parent d460d4a commit c006b36
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -105,9 +105,11 @@ class RedisConfig {

String password = redisConnection.userInfo ? redisConnection.userInfo.split(':', 2)[1] : null

boolean isSSL = redisConnection.getScheme() == "rediss"

new InstrumentedJedisPool(
registry,
new JedisPool(redisPoolConfig ?: new GenericObjectPoolConfig(), host, port, timeout, password, database, null),
new JedisPool(redisPoolConfig ?: new GenericObjectPoolConfig(), host, port, timeout, password, database, isSSL),
name
)
}
Expand Down

0 comments on commit c006b36

Please sign in to comment.