]> 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 1015c5e451a8502bcfbf1fab7d6d63f7ffeacd72..458005b9842f9cf5c134fd0c0ca1e656ddebfcf6 100644 (file)
@@ -33,12 +33,14 @@ 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',
     'followers.instance.enabled', 'followers.instance.manual_approval',
     'tracker.enabled', 'tracker.private', 'tracker.reject_too_many_announces',
-    'history.videos.max_age', 'views.videos.remote.max_age',
+    'history.videos.max_age', 'views.videos.remote.max_age', 'views.videos.local_buffer_update_interval', 'views.videos.ip_view_expiration',
     'rates_limit.login.window', 'rates_limit.login.max', 'rates_limit.ask_send_email.window', 'rates_limit.ask_send_email.max',
     'theme.default',
     'remote_redundancy.videos.accept_from',
@@ -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.')
   }
 }