mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 13:27:31 -08:00
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:
parent
cc37a5046a
commit
a910757cc5
|
@ -399,6 +399,12 @@ export const schema = {
|
||||||
default: '',
|
default: '',
|
||||||
env: 'QUEUE_BULL_REDIS_CLUSTER_NODES',
|
env: 'QUEUE_BULL_REDIS_CLUSTER_NODES',
|
||||||
},
|
},
|
||||||
|
tls: {
|
||||||
|
format: 'Boolean',
|
||||||
|
default: false,
|
||||||
|
env: 'QUEUE_BULL_REDIS_TLS',
|
||||||
|
doc: 'Enable TLS on Redis connections. Default: false',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
queueRecoveryInterval: {
|
queueRecoveryInterval: {
|
||||||
doc: 'If > 0 enables an active polling to the queue that can recover for Redis crashes. Given in seconds; 0 is disabled. May increase Redis traffic significantly.',
|
doc: 'If > 0 enables an active polling to the queue that can recover for Redis crashes. Given in seconds; 0 is disabled. May increase Redis traffic significantly.',
|
||||||
|
|
|
@ -55,6 +55,7 @@ export function getRedisStandardClient(
|
||||||
enableReadyCheck: false,
|
enableReadyCheck: false,
|
||||||
maxRetriesPerRequest: null,
|
maxRetriesPerRequest: null,
|
||||||
};
|
};
|
||||||
|
if (config.getEnv('queue.bull.redis.tls')) sharedRedisOptions.tls = {};
|
||||||
LoggerProxy.debug(
|
LoggerProxy.debug(
|
||||||
`Initialising Redis client${redisType ? ` of type ${redisType}` : ''} connection with host: ${
|
`Initialising Redis client${redisType ? ` of type ${redisType}` : ''} connection with host: ${
|
||||||
host ?? 'localhost'
|
host ?? 'localhost'
|
||||||
|
@ -101,6 +102,7 @@ export function getRedisClusterClient(
|
||||||
enableReadyCheck: false,
|
enableReadyCheck: false,
|
||||||
maxRetriesPerRequest: null,
|
maxRetriesPerRequest: null,
|
||||||
};
|
};
|
||||||
|
if (config.getEnv('queue.bull.redis.tls')) sharedRedisOptions.tls = {};
|
||||||
LoggerProxy.debug(
|
LoggerProxy.debug(
|
||||||
`Initialising Redis cluster${
|
`Initialising Redis cluster${
|
||||||
redisType ? ` of type ${redisType}` : ''
|
redisType ? ` of type ${redisType}` : ''
|
||||||
|
|
Loading…
Reference in a new issue