Add SSL connection option for Redis

This commit is contained in:
William committed 2022-01-21 01:18:47 +00:00
1 parent 68daea3ce9
commit ffc3706630
3 files changed
+9 -2

No files matched your search

@@ -27,13 +27,15 @@ public class RedisReceiver {
jedisPool = new JedisPool(new JedisPoolConfig(),
HuskHomes.getSettings().getRedisHost(),
HuskHomes.getSettings().getRedisPort(),
0);
0,
HuskHomes.getSettings().getRedisSSL());
} else {
jedisPool = new JedisPool(new JedisPoolConfig(),
HuskHomes.getSettings().getRedisHost(),
HuskHomes.getSettings().getRedisPort(),
0,
HuskHomes.getSettings().getRedisPassword());
HuskHomes.getSettings().getRedisPassword(),
HuskHomes.getSettings().getRedisSSL());
}
}