First implem global search
[oweals/peertube.git] / server / initializers / checker-after-init.ts
index b5b8541379d4abcad1ed4c783801fb2dc3341f25..b49ab6bca790d1bbab034c95ee2a898838b9d14e 100644 (file)
@@ -128,6 +128,13 @@ function checkConfig () {
     }
   }
 
+  // Search index
+  if (CONFIG.SEARCH.SEARCH_INDEX.ENABLED === true) {
+    if (CONFIG.SEARCH.REMOTE_URI.USERS === false) {
+      return 'You cannot enable search index without enabling remote URI search for users.'
+    }
+  }
+
   return null
 }