Skip to content

Commit

Permalink
feat(rosco): Add support for Redis SSL (#719)
Browse files Browse the repository at this point in the history
Co-authored-by: Fernando Freire <fernando.freire@armory.io>
  • Loading branch information
tompiscitell and dogonthehorizon committed Dec 7, 2020
1 parent c39f83d commit 8662444
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class JedisConfig {
poolConfig.setMaxTotal(100)
poolConfig.setMinIdle(25)
poolConfig.setMaxIdle(100)
new JedisPool(poolConfig, connectionInfo.host, connectionInfo.port, timeout, connectionInfo.password)
new JedisPool(poolConfig, connectionInfo.host, connectionInfo.port, timeout, connectionInfo.password, connectionInfo.isSSL)
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class RedisConnectionInfo {
int port
int database
String password
boolean isSSL

boolean hasPassword() {
password?.length() > 0
Expand All @@ -43,11 +44,14 @@ class RedisConnectionInfo {

String password = JedisURIHelper.getPassword(redisConnection)

boolean isSSL = JedisURIHelper.isRedisSSLScheme(redisConnection)

new RedisConnectionInfo([
host: host,
port: port,
database: database,
password: password
password: password,
isSSL: isSSL
])
}

Expand Down

0 comments on commit 8662444

Please sign in to comment.