diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-29 16:16:24 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-10 14:02:41 +0200 |
commit | 5fb2e2888ce032c638e4b75d07458642f0833e52 (patch) | |
tree | 8830d873569316889b8134027e9a43b198cca38f /server/initializers/checker-after-init.ts | |
parent | 62e7be634bc189f942ae51cb4b080079ab503ff0 (diff) | |
download | PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.gz PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.zst PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.zip |
First implem global search
Diffstat (limited to 'server/initializers/checker-after-init.ts')
-rw-r--r-- | server/initializers/checker-after-init.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index b5b854137..b49ab6bca 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts | |||
@@ -128,6 +128,13 @@ function checkConfig () { | |||
128 | } | 128 | } |
129 | } | 129 | } |
130 | 130 | ||
131 | // Search index | ||
132 | if (CONFIG.SEARCH.SEARCH_INDEX.ENABLED === true) { | ||
133 | if (CONFIG.SEARCH.REMOTE_URI.USERS === false) { | ||
134 | return 'You cannot enable search index without enabling remote URI search for users.' | ||
135 | } | ||
136 | } | ||
137 | |||
131 | return null | 138 | return null |
132 | } | 139 | } |
133 | 140 | ||