diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/initializers/checker.ts | 2 | ||||
-rw-r--r-- | server/initializers/constants.ts | 3 | ||||
-rw-r--r-- | server/lib/job-queue/job-queue.ts | 3 | ||||
-rw-r--r-- | server/lib/redis.ts | 3 |
4 files changed, 7 insertions, 4 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts index c11dc7a89..5a9c603b5 100644 --- a/server/initializers/checker.ts +++ b/server/initializers/checker.ts | |||
@@ -22,7 +22,7 @@ function checkMissedConfig () { | |||
22 | 'webserver.https', 'webserver.hostname', 'webserver.port', | 22 | 'webserver.https', 'webserver.hostname', 'webserver.port', |
23 | 'trust_proxy', | 23 | 'trust_proxy', |
24 | 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', | 24 | 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', |
25 | 'redis.hostname', 'redis.port', 'redis.auth', | 25 | 'redis.hostname', 'redis.port', 'redis.auth', 'redis.db', |
26 | 'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address', | 26 | 'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address', |
27 | 'storage.avatars', 'storage.videos', 'storage.logs', 'storage.previews', 'storage.thumbnails', 'storage.torrents', 'storage.cache', | 27 | 'storage.avatars', 'storage.videos', 'storage.logs', 'storage.previews', 'storage.thumbnails', 'storage.torrents', 'storage.cache', |
28 | 'log.level', | 28 | 'log.level', |
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 51d272895..424947590 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -111,7 +111,8 @@ const CONFIG = { | |||
111 | REDIS: { | 111 | REDIS: { |
112 | HOSTNAME: config.get<string>('redis.hostname'), | 112 | HOSTNAME: config.get<string>('redis.hostname'), |
113 | PORT: config.get<number>('redis.port'), | 113 | PORT: config.get<number>('redis.port'), |
114 | AUTH: config.get<string>('redis.auth') | 114 | AUTH: config.get<string>('redis.auth'), |
115 | DB: config.get<number>('redis.db') | ||
115 | }, | 116 | }, |
116 | SMTP: { | 117 | SMTP: { |
117 | HOSTNAME: config.get<string>('smtp.hostname'), | 118 | HOSTNAME: config.get<string>('smtp.hostname'), |
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 => { |