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 | |
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')
-rw-r--r-- | server/lib/job-queue/job-queue.ts | 3 | ||||
-rw-r--r-- | server/lib/redis.ts | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/server/lib/job-queue/job-queue.ts b/server/lib/job-queue/job-queue.ts index acc69ef24..0333464bd 100644 --- a/server/lib/job-queue/job-queue.ts +++ b/server/lib/job-queue/job-queue.ts | |||
@@ -56,7 +56,8 @@ class JobQueue { | |||
56 | redis: { | 56 | redis: { |
57 | host: CONFIG.REDIS.HOSTNAME, | 57 | host: CONFIG.REDIS.HOSTNAME, |
58 | port: CONFIG.REDIS.PORT, | 58 | port: CONFIG.REDIS.PORT, |
59 | auth: CONFIG.REDIS.AUTH | 59 | auth: CONFIG.REDIS.AUTH, |
60 | db: CONFIG.REDIS.DB | ||
60 | } | 61 | } |
61 | }) | 62 | }) |
62 | 63 | ||
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 => { |