9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-29 11:39:14 +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);
}
}

View File

@@ -3,6 +3,7 @@ redis_settings:
host: 'localhost'
port: 6379
password: ''
use_ssl: false
data_storage_settings:
database_type: 'sqlite'
mysql_settings: