aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 6173e1298..c5bc886d8 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -116,10 +116,11 @@ const CONFIG = {
116 PASSWORD: config.get<string>('database.password') 116 PASSWORD: config.get<string>('database.password')
117 }, 117 },
118 REDIS: { 118 REDIS: {
119 HOSTNAME: config.get<string>('redis.hostname'), 119 HOSTNAME: config.has('redis.hostname') ? config.get<string>('redis.hostname') : null,
120 PORT: config.get<number>('redis.port'), 120 PORT: config.has('redis.port') ? config.get<number>('redis.port') : null,
121 AUTH: config.get<string>('redis.auth'), 121 SOCKET: config.has('redis.socket') ? config.get<string>('redis.socket') : null,
122 DB: config.get<number>('redis.db') 122 AUTH: config.has('redis.auth') ? config.get<string>('redis.auth') : null,
123 DB: config.has('redis.db') ? config.get<number>('redis.db') : null
123 }, 124 },
124 SMTP: { 125 SMTP: {
125 HOSTNAME: config.get<string>('smtp.hostname'), 126 HOSTNAME: config.get<string>('smtp.hostname'),