chore: add redis connection settings to env file

This commit is contained in:
Valentin Kaelin 2020-02-10 21:11:29 +01:00
parent 65a63c743f
commit f06563cfed
2 changed files with 8 additions and 3 deletions

View file

@ -16,6 +16,11 @@ DB_USER=root
DB_PASSWORD= DB_PASSWORD=
DB_DATABASE=leaguestats DB_DATABASE=leaguestats
REDIS_CONNECTION=local
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
REDIS_PASSWORD=
HASH_DRIVER=bcrypt HASH_DRIVER=bcrypt
API_KEY=RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx API_KEY=RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

View file

@ -32,9 +32,9 @@ module.exports = {
| |
*/ */
local: { local: {
host: '127.0.0.1', host: Env.get('REDIS_HOST', '127.0.0.1'),
port: 6379, port: Env.get('REDIS_PORT', 6379),
password: null, password: Env.get('REDIS_PASSWORD', null),
db: 0, db: 0,
keyPrefix: '' keyPrefix: ''
}, },