diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2023-05-10 09:52:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-10 09:52:50 +0200 |
commit | 674f8ddd415ff4faf100ff35cf2511f84f60fea9 (patch) | |
tree | ab4f8b6b42172f5cdafc87c50b6202ea547429ae /server/initializers/checker-before-init.ts | |
parent | 5170f492b95dc81b75230312411c5fdb0019eed2 (diff) | |
download | PeerTube-674f8ddd415ff4faf100ff35cf2511f84f60fea9.tar.gz PeerTube-674f8ddd415ff4faf100ff35cf2511f84f60fea9.tar.zst PeerTube-674f8ddd415ff4faf100ff35cf2511f84f60fea9.zip |
feat(server): add redis sentinel support (#5593)
* feat(server): add redis sentinel support
closes #5141
* Styling
---------
Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'server/initializers/checker-before-init.ts')
-rw-r--r-- | server/initializers/checker-before-init.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index 2f5a274e4..0a315ea70 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts | |||
@@ -84,7 +84,8 @@ function checkMissedConfig () { | |||
84 | const requiredAlternatives = [ | 84 | const requiredAlternatives = [ |
85 | [ // set | 85 | [ // set |
86 | [ 'redis.hostname', 'redis.port' ], // alternative | 86 | [ 'redis.hostname', 'redis.port' ], // alternative |
87 | [ 'redis.socket' ] | 87 | [ 'redis.socket' ], |
88 | [ 'redis.sentinel.master_name', 'redis.sentinel.sentinels[0].hostname', 'redis.sentinel.sentinels[0].port' ] | ||
88 | ] | 89 | ] |
89 | ] | 90 | ] |
90 | const miss: string[] = [] | 91 | const miss: string[] = [] |