From e53d1f6bdc6fbb8da2d0b75c1b294708e7244058 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 85c4e424aa..0a0802a3a8 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 4d7facd136..5d96f7747d 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: {