From 183dffde2d5cea53635541245ac1cc5aee2fffa2 Mon Sep 17 00:00:00 2001 From: Hoai-Thu Vuong Date: Mon, 27 Feb 2023 10:12:44 +0700 Subject: [PATCH] load redis config from env --- config/session.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/session.js b/config/session.js index b2174da3..62257764 100644 --- a/config/session.js +++ b/config/session.js @@ -89,10 +89,10 @@ module.exports = { | */ redis: { - host: '127.0.0.1', - port: 6379, - password: null, - db: 0, - keyPrefix: '', + host: Env.get('REDIS_HOST', '127.0.0.1'), + port: Env.get('REDIS_PORT', 6379), + password: Env.get('REDIS_PASSWORD'), + db: Env.get('REDIS_DB', 0), + keyPrefix: Env.get('REDIS_KEY_PREFIX', ''), }, };