'webserver.https', 'webserver.hostname', 'webserver.port',
'trust_proxy',
'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password',
- 'redis.hostname', 'redis.port', 'redis.auth',
+ 'redis.hostname', 'redis.port', 'redis.auth', 'redis.db',
'smtp.hostname', 'smtp.port', 'smtp.username', 'smtp.password', 'smtp.tls', 'smtp.from_address',
'storage.avatars', 'storage.videos', 'storage.logs', 'storage.previews', 'storage.thumbnails', 'storage.torrents', 'storage.cache',
'log.level',
REDIS: {
HOSTNAME: config.get<string>('redis.hostname'),
PORT: config.get<number>('redis.port'),
- AUTH: config.get<string>('redis.auth')
+ AUTH: config.get<string>('redis.auth'),
+ DB: config.get<number>('redis.db')
},
SMTP: {
HOSTNAME: config.get<string>('smtp.hostname'),
this.client = createClient({
host: CONFIG.REDIS.HOSTNAME,
- port: CONFIG.REDIS.PORT
+ port: CONFIG.REDIS.PORT,
+ db: CONFIG.REDIS.DB
})
this.client.on('error', err => {