aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-05-21 13:26:04 +0200
committerChocobozzz <me@florianbigard.com>2018-05-21 17:49:56 +0200
commit30c82f0d2e9adacc1d3398822aa7810c0ccbceb4 (patch)
treef24f7c978b0421d79d131b976ae36a826baa8d8c /server/initializers
parent2e8e97f313683bdf8a7448f3d1ba1f1c27f6ad50 (diff)
downloadPeerTube-30c82f0d2e9adacc1d3398822aa7810c0ccbceb4.tar.gz
PeerTube-30c82f0d2e9adacc1d3398822aa7810c0ccbceb4.tar.zst
PeerTube-30c82f0d2e9adacc1d3398822aa7810c0ccbceb4.zip
feature: db selection in redis
resolves #579
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker.ts2
-rw-r--r--server/initializers/constants.ts3
2 files changed, 3 insertions, 2 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'),