mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-26 01:59:20 +00:00
Add SSL connection option for Redis
This commit is contained in:
@@ -21,6 +21,7 @@ public class Settings {
|
||||
public static String redisHost;
|
||||
public static int redisPort;
|
||||
public static String redisPassword;
|
||||
public static boolean redisSSL;
|
||||
|
||||
/*
|
||||
* Bungee / Proxy server-only settings
|
||||
|
||||
@@ -27,13 +27,15 @@ public abstract class RedisListener {
|
||||
jedisPool = new JedisPool(new JedisPoolConfig(),
|
||||
Settings.redisHost,
|
||||
Settings.redisPort,
|
||||
0);
|
||||
0,
|
||||
Settings.redisSSL);
|
||||
} else {
|
||||
jedisPool = new JedisPool(new JedisPoolConfig(),
|
||||
Settings.redisHost,
|
||||
Settings.redisPort,
|
||||
0,
|
||||
Settings.redisPassword);
|
||||
Settings.redisPassword,
|
||||
Settings.redisSSL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user