fix: 🩹 use redis user for bull and postgres cache interface
Follow up #10366, d96877033b
This commit is contained in:
parent
d96877033b
commit
e53d1f6bdc
2 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ export const db = new DataSource({
|
||||||
host: config.redis.host,
|
host: config.redis.host,
|
||||||
port: config.redis.port,
|
port: config.redis.port,
|
||||||
family: config.redis.family == null ? 0 : config.redis.family,
|
family: config.redis.family == null ? 0 : config.redis.family,
|
||||||
user: "default",
|
user: config.redis.user ?? "default",
|
||||||
password: config.redis.pass,
|
password: config.redis.pass,
|
||||||
keyPrefix: `${config.redis.prefix}:query:`,
|
keyPrefix: `${config.redis.prefix}:query:`,
|
||||||
db: config.redis.db || 0,
|
db: config.redis.db || 0,
|
||||||
|
|
|
@ -7,7 +7,7 @@ export function initialize<T>(name: string, limitPerSec = -1) {
|
||||||
port: config.redis.port,
|
port: config.redis.port,
|
||||||
host: config.redis.host,
|
host: config.redis.host,
|
||||||
family: config.redis.family == null ? 0 : config.redis.family,
|
family: config.redis.family == null ? 0 : config.redis.family,
|
||||||
user: "default",
|
user: config.redis.user ?? "default",
|
||||||
password: config.redis.pass,
|
password: config.redis.pass,
|
||||||
db: config.redis.db || 0,
|
db: config.redis.db || 0,
|
||||||
tls: {
|
tls: {
|
||||||
|
|
Loading…
Reference in a new issue