9
0
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:
William
2022-01-21 00:57:16 +00:00
parent 920d2582f5
commit 6719858de1
7 changed files with 14 additions and 7 deletions

View File

@@ -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

View File

@@ -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);
}
}