Skip to content

Commit

Permalink
feat(gate): Add support for Redis SSL (#1295)
Browse files Browse the repository at this point in the history
* feat(gate): Add support for Redis SSL

Follow Kork's existing pattern and check for presence of rediss in
the URI Scheme.

Gate doesn't initialise JedisPool() pool with parameters like Kork
so follow Gate conventions and use function to enable SSL.

* style(gate): fix indentation of redis ssl function

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
karlskewes and mergify[bot] committed Aug 5, 2020
1 parent e369f87 commit f7842e4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public PostConnectionConfiguringJedisConnectionFactory(
setPassword(userInfo.get(1));
}
}

if (redisUri.getScheme().equals("rediss")) {
setUseSsl(true);
}
}

@Override
Expand Down

0 comments on commit f7842e4

Please sign in to comment.