From f06563cfed78b2dd406e75f98e12b1c68e43790b Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Mon, 10 Feb 2020 21:11:29 +0100 Subject: [PATCH] chore: add redis connection settings to env file --- server/.env.example | 5 +++++ server/config/redis.js | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/server/.env.example b/server/.env.example index e92ae55..1f7ff4d 100644 --- a/server/.env.example +++ b/server/.env.example @@ -16,6 +16,11 @@ DB_USER=root DB_PASSWORD= DB_DATABASE=leaguestats +REDIS_CONNECTION=local +REDIS_HOST=127.0.0.1 +REDIS_PORT=6379 +REDIS_PASSWORD= + HASH_DRIVER=bcrypt API_KEY=RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx diff --git a/server/config/redis.js b/server/config/redis.js index 0dd8707..cb3a954 100644 --- a/server/config/redis.js +++ b/server/config/redis.js @@ -32,9 +32,9 @@ module.exports = { | */ local: { - host: '127.0.0.1', - port: 6379, - password: null, + host: Env.get('REDIS_HOST', '127.0.0.1'), + port: Env.get('REDIS_PORT', 6379), + password: Env.get('REDIS_PASSWORD', null), db: 0, keyPrefix: '' },