fix(core): Add support for in-transit encryption (TLS) on Redis connections (#7047)

Fixes https://community.n8n.io/t/upgrade-from-1-1-1-to-1-2-0/30148
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-09-05 18:18:50 +02:00
committed by GitHub
parent cc37a5046a
commit a910757cc5
2 changed files with 8 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ export function getRedisStandardClient(
enableReadyCheck: false,
maxRetriesPerRequest: null,
};
if (config.getEnv('queue.bull.redis.tls')) sharedRedisOptions.tls = {};
LoggerProxy.debug(
`Initialising Redis client${redisType ? ` of type ${redisType}` : ''} connection with host: ${
host ?? 'localhost'
@@ -101,6 +102,7 @@ export function getRedisClusterClient(
enableReadyCheck: false,
maxRetriesPerRequest: null,
};
if (config.getEnv('queue.bull.redis.tls')) sharedRedisOptions.tls = {};
LoggerProxy.debug(
`Initialising Redis cluster${
redisType ? ` of type ${redisType}` : ''