From ff9cba565f1c58f3644da077249e68d2a7e10873 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 26 Jun 2023 15:06:32 -0700 Subject: [PATCH] fix: :adhesive_bandage: use redis user for bull and postgres cache interface Follow up #10366, d96877033be9790d11b0212ab8825f93202d22a2 --- packages/backend/src/db/postgre.ts | 2 +- packages/backend/src/queue/initialize.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/db/postgre.ts b/packages/backend/src/db/postgre.ts index 85c4e424a..0a0802a3a 100644 --- a/packages/backend/src/db/postgre.ts +++ b/packages/backend/src/db/postgre.ts @@ -207,7 +207,7 @@ export const db = new DataSource({ host: config.redis.host, port: config.redis.port, family: config.redis.family == null ? 0 : config.redis.family, - user: "default", + user: config.redis.user ?? "default", password: config.redis.pass, keyPrefix: `${config.redis.prefix}:query:`, db: config.redis.db || 0, diff --git a/packages/backend/src/queue/initialize.ts b/packages/backend/src/queue/initialize.ts index 4d7facd13..5d96f7747 100644 --- a/packages/backend/src/queue/initialize.ts +++ b/packages/backend/src/queue/initialize.ts @@ -7,7 +7,7 @@ export function initialize(name: string, limitPerSec = -1) { port: config.redis.port, host: config.redis.host, family: config.redis.family == null ? 0 : config.redis.family, - user: "default", + user: config.redis.user ?? "default", password: config.redis.pass, db: config.redis.db || 0, tls: {