diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-05-14 17:51:15 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2018-07-14 15:00:56 +0200 |
commit | 19f7b248d88805e6595b671a7447b0ba5e1451fa (patch) | |
tree | 2b58f538411c8f1d3cffaeef0e63758a7b0b050f /server/initializers/constants.ts | |
parent | 4503cb2a894d9fb2b838cab0a9af8b3923e18a56 (diff) | |
download | PeerTube-19f7b248d88805e6595b671a7447b0ba5e1451fa.tar.gz PeerTube-19f7b248d88805e6595b671a7447b0ba5e1451fa.tar.zst PeerTube-19f7b248d88805e6595b671a7447b0ba5e1451fa.zip |
adding redis unix connection
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 9 |
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'), |