feat(redis): add support for dedicated queue client configuration (#14840)
Fix https://github.com/twentyhq/core-team-issues/issues/452 Fix https://github.com/twentyhq/core-team-issues/issues/923 --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
@@ -841,7 +841,22 @@ export class ConfigVariables {
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.ServerConfig,
|
||||
isSensitive: true,
|
||||
description: 'URL for cache storage (e.g., Redis connection URL)',
|
||||
description: 'Redis connection URL used for cache and queues by default',
|
||||
isEnvOnly: true,
|
||||
type: ConfigVariableType.STRING,
|
||||
})
|
||||
@IsUrl({
|
||||
protocols: ['redis', 'rediss'],
|
||||
require_tld: false,
|
||||
allow_underscores: true,
|
||||
})
|
||||
REDIS_URL: string;
|
||||
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.ServerConfig,
|
||||
isSensitive: true,
|
||||
description:
|
||||
'Optional separate Redis connection for queues with a different eviction policy (advanced production use case, most self-hosters do not need this)',
|
||||
isEnvOnly: true,
|
||||
type: ConfigVariableType.STRING,
|
||||
})
|
||||
@@ -851,7 +866,7 @@ export class ConfigVariables {
|
||||
require_tld: false,
|
||||
allow_underscores: true,
|
||||
})
|
||||
REDIS_URL: string;
|
||||
REDIS_QUEUE_URL: string;
|
||||
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.ServerConfig,
|
||||
|
||||
Reference in New Issue
Block a user