Skip to content

Commit e7fe615

Browse files
committed
fix: support REDIS_PASSWORD, REDIS_DB env var in default config
1 parent f41a269 commit e7fe615

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ config.development = {
103103
default: {
104104
host: process.env.REDIS_HOST || '127.0.0.1',
105105
port: process.env.REDIS_PORT || 6379,
106+
password: process.env.REDIS_PASSWORD,
107+
db: process.env.REDIS_DB || 0,
106108
retry_strategy: function (options) {
107109
if (options.error.code === 'ECONNREFUSED') {
108110
// End reconnecting on a specific error and flush all commands with a individual error

0 commit comments

Comments
 (0)