diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-05-21 13:26:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-21 17:49:56 +0200 |
commit | 30c82f0d2e9adacc1d3398822aa7810c0ccbceb4 (patch) | |
tree | f24f7c978b0421d79d131b976ae36a826baa8d8c /server/lib/redis.ts | |
parent | 2e8e97f313683bdf8a7448f3d1ba1f1c27f6ad50 (diff) | |
download | PeerTube-30c82f0d2e9adacc1d3398822aa7810c0ccbceb4.tar.gz PeerTube-30c82f0d2e9adacc1d3398822aa7810c0ccbceb4.tar.zst PeerTube-30c82f0d2e9adacc1d3398822aa7810c0ccbceb4.zip |
feature: db selection in redis
resolves #579
Diffstat (limited to 'server/lib/redis.ts')
-rw-r--r-- | server/lib/redis.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/redis.ts b/server/lib/redis.ts index 0acb9ff0e..97ff3598b 100644 --- a/server/lib/redis.ts +++ b/server/lib/redis.ts | |||
@@ -26,7 +26,8 @@ class Redis { | |||
26 | 26 | ||
27 | this.client = createClient({ | 27 | this.client = createClient({ |
28 | host: CONFIG.REDIS.HOSTNAME, | 28 | host: CONFIG.REDIS.HOSTNAME, |
29 | port: CONFIG.REDIS.PORT | 29 | port: CONFIG.REDIS.PORT, |
30 | db: CONFIG.REDIS.DB | ||
30 | }) | 31 | }) |
31 | 32 | ||
32 | this.client.on('error', err => { | 33 | this.client.on('error', err => { |