mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 16:41:36 +01:00
Fix: Use consistent REDIS_USER environment variable in streaming (#32493)
This commit is contained in:
parent
7c10b0fb7a
commit
6d99f848a2
1 changed files with 3 additions and 3 deletions
|
@ -50,9 +50,9 @@ function getSentinelConfiguration(env, commonOptions) {
|
||||||
return {
|
return {
|
||||||
db: redisDatabase,
|
db: redisDatabase,
|
||||||
name: env.REDIS_SENTINEL_MASTER,
|
name: env.REDIS_SENTINEL_MASTER,
|
||||||
username: env.REDIS_USERNAME,
|
username: env.REDIS_USER,
|
||||||
password: env.REDIS_PASSWORD,
|
password: env.REDIS_PASSWORD,
|
||||||
sentinelUsername: env.REDIS_SENTINEL_USERNAME ?? env.REDIS_USERNAME,
|
sentinelUsername: env.REDIS_SENTINEL_USERNAME ?? env.REDIS_USER,
|
||||||
sentinelPassword: env.REDIS_SENTINEL_PASSWORD ?? env.REDIS_PASSWORD,
|
sentinelPassword: env.REDIS_SENTINEL_PASSWORD ?? env.REDIS_PASSWORD,
|
||||||
sentinels,
|
sentinels,
|
||||||
...commonOptions,
|
...commonOptions,
|
||||||
|
@ -104,7 +104,7 @@ export function configFromEnv(env) {
|
||||||
host: env.REDIS_HOST ?? '127.0.0.1',
|
host: env.REDIS_HOST ?? '127.0.0.1',
|
||||||
port: redisPort,
|
port: redisPort,
|
||||||
db: redisDatabase,
|
db: redisDatabase,
|
||||||
username: env.REDIS_USERNAME,
|
username: env.REDIS_USER,
|
||||||
password: env.REDIS_PASSWORD,
|
password: env.REDIS_PASSWORD,
|
||||||
...commonOptions,
|
...commonOptions,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue