diff options
Diffstat (limited to 'server/initializers/checker-after-init.ts')
-rw-r--r-- | server/initializers/checker-after-init.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index 979c97a8b..2b00e2047 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts | |||
@@ -116,6 +116,16 @@ function checkConfig () { | |||
116 | if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && CONFIG.TRANSCODING.HLS.ENABLED === false) { | 116 | if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && CONFIG.TRANSCODING.HLS.ENABLED === false) { |
117 | return 'You need to enable at least WebTorrent transcoding or HLS transcoding.' | 117 | return 'You need to enable at least WebTorrent transcoding or HLS transcoding.' |
118 | } | 118 | } |
119 | |||
120 | if (CONFIG.TRANSCODING.CONCURRENCY <= 0) { | ||
121 | return 'Transcoding concurrency should be > 0' | ||
122 | } | ||
123 | } | ||
124 | |||
125 | if (CONFIG.IMPORT.VIDEOS.HTTP.ENABLED || CONFIG.IMPORT.VIDEOS.TORRENT.ENABLED) { | ||
126 | if (CONFIG.IMPORT.VIDEOS.CONCURRENCY <= 0) { | ||
127 | return 'Video import concurrency should be > 0' | ||
128 | } | ||
119 | } | 129 | } |
120 | 130 | ||
121 | // Broadcast message | 131 | // Broadcast message |