forked from treehouse/mastodon
Change streaming server to treat blank redis password as password-less auth (#14135)
Fixes #14131 Our `mastodon:setup` task defaults to a blank password rather than the absence of password, but some versions of Redis reject blank password authentication when authentication is possible without a password. The Ruby code only uses the Redis password when it's not blank, so do the same for the node.js part.rebase/4.0.0rc2
parent
bb9ca8a587
commit
ddcdddd6fc
|
@ -118,7 +118,7 @@ const startWorker = (workerId) => {
|
||||||
host: process.env.REDIS_HOST || '127.0.0.1',
|
host: process.env.REDIS_HOST || '127.0.0.1',
|
||||||
port: process.env.REDIS_PORT || 6379,
|
port: process.env.REDIS_PORT || 6379,
|
||||||
db: process.env.REDIS_DB || 0,
|
db: process.env.REDIS_DB || 0,
|
||||||
password: process.env.REDIS_PASSWORD,
|
password: process.env.REDIS_PASSWORD || undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (redisNamespace) {
|
if (redisNamespace) {
|
||||||
|
|
Loading…
Reference in New Issue