change useSSL to useTLS, because redis itself refers to it as TLS

This commit is contained in:
Govindass 2020-10-24 12:35:35 +03:00
parent f6c4bbcdce
commit 2b00f0908e
3 changed files with 7 additions and 5 deletions

View File

@ -48,7 +48,7 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
config.getInt("Redis.Port"),
config.getInt("Redis.TimeOut"),
config.getString("Redis.Password"),
config.getBoolean("Redis.useSSL"));
config.getBoolean("Redis.useTLS"));
RedisService = Executors.newFixedThreadPool(config.getInt("Redis.Threads"));
try {
this.subscribeJedis = this.jedisPool.getResource();

View File

@ -63,7 +63,7 @@ public class EffSendMessage extends Effect {
@Override
public String toString(Event event, boolean b) {
return "send redis message to channel " + channel.getSingle(event) + " with message " + message.getSingle(event);
return "send redis message " + message.getSingle(event) + " to channel " + channel.getSingle(event);
}
@SuppressWarnings("unchecked")

View File

@ -10,10 +10,12 @@ Redis:
#time out in milliseconds, how long it should take before it decides that it is unable to connect when sending a message
#90000 = 90 seconds
TimeOut: 90000
#also known as TLS, only use this if you're running Redis 6.0.6 or higher, older versions will not work correctly
useSSL: false
#may be useful if you cannot use SSL due to use of older version of Redis
#also known as SSL, only use this if you're running Redis 6.0.6 or higher, older versions will not work correctly
#it encrypts your traffic and makes data exchange between distant servers completely secure
useTLS: false
#may be useful if you cannot use TLS due to use of older version of Redis
#however this will not encrypt the initial authentication password, only the messages sent
#it uses AES-128 SIV encryption which is secure enough for this
EncryptMessages: true
EncryptionKey: "16CHARACTERS KEY"
MacKey: "16CHARACTERS KEY"