]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/checker-before-init.ts
Try to fix ARM docker builds
[github/Chocobozzz/PeerTube.git] / server / initializers / checker-before-init.ts
index 51c39654839709f5efa7d86a77047775e1818b49..458005b9842f9cf5c134fd0c0ca1e656ddebfcf6 100644 (file)
@@ -33,6 +33,8 @@ function checkMissedConfig () {
     'transcoding.resolutions.2160p',
     'import.videos.http.enabled', 'import.videos.torrent.enabled', 'import.videos.concurrency', 'auto_blacklist.videos.of_users.enabled',
     'trending.videos.interval_days',
+    'client.videos.miniature.prefer_author_display_name', 'client.menu.login.redirect_on_single_external_auth',
+    'defaults.publish.download_enabled', 'defaults.publish.comments_enabled', 'defaults.publish.privacy', 'defaults.publish.licence',
     'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route',
     'instance.is_nsfw', 'instance.default_nsfw_policy', 'instance.robots', 'instance.securitytxt',
     'services.twitter.username', 'services.twitter.whitelisted',
@@ -115,7 +117,11 @@ function checkNodeVersion () {
   logger.debug('Checking NodeJS version %s.', v)
 
   if (major <= 10) {
-    logger.warn('Your NodeJS version %s is deprecated. Please upgrade.', v)
+    throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
+  }
+
+  if (major <= 12) {
+    logger.warn('Your NodeJS version ' + v + ' is deprecated. Please upgrade.')
   }
 }