feat(core): Add compatibility to redis > 6 ACLs system using username in queue-mode (#5048)

feat(redis): add compatibility to redis > 6 ACLs system using username

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Thomas S
2023-01-03 11:45:03 +01:00
committed by GitHub
parent e1f9349c19
commit 0ec66bfb42
3 changed files with 14 additions and 0 deletions

View File

@@ -350,6 +350,7 @@ export class Start extends Command {
if (config.getEnv('executions.mode') === 'queue') {
const redisHost = config.getEnv('queue.bull.redis.host');
const redisUsername = config.getEnv('queue.bull.redis.username');
const redisPassword = config.getEnv('queue.bull.redis.password');
const redisPort = config.getEnv('queue.bull.redis.port');
const redisDB = config.getEnv('queue.bull.redis.db');
@@ -383,6 +384,9 @@ export class Start extends Command {
if (redisHost) {
settings.host = redisHost;
}
if (redisUsername) {
settings.username = redisUsername;
}
if (redisPassword) {
settings.password = redisPassword;
}