aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index e2442213c..699dd4704 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -304,6 +304,12 @@ const CONFIG = {
304 COUNT: config.get<number>('feeds.comments.count') 304 COUNT: config.get<number>('feeds.comments.count')
305 } 305 }
306 }, 306 },
307 REMOTE_RUNNERS: {
308 STALLED_JOBS: {
309 LIVE: parseDurationToMs(config.get<string>('remote_runners.stalled_jobs.live')),
310 VOD: parseDurationToMs(config.get<string>('remote_runners.stalled_jobs.vod'))
311 }
312 },
307 ADMIN: { 313 ADMIN: {
308 get EMAIL () { return config.get<string>('admin.email') } 314 get EMAIL () { return config.get<string>('admin.email') }
309 }, 315 },
@@ -359,6 +365,9 @@ const CONFIG = {
359 }, 365 },
360 WEBTORRENT: { 366 WEBTORRENT: {
361 get ENABLED () { return config.get<boolean>('transcoding.webtorrent.enabled') } 367 get ENABLED () { return config.get<boolean>('transcoding.webtorrent.enabled') }
368 },
369 REMOTE_RUNNERS: {
370 get ENABLED () { return config.get<boolean>('transcoding.remote_runners.enabled') }
362 } 371 }
363 }, 372 },
364 LIVE: { 373 LIVE: {
@@ -406,6 +415,9 @@ const CONFIG = {
406 get '1080p' () { return config.get<boolean>('live.transcoding.resolutions.1080p') }, 415 get '1080p' () { return config.get<boolean>('live.transcoding.resolutions.1080p') },
407 get '1440p' () { return config.get<boolean>('live.transcoding.resolutions.1440p') }, 416 get '1440p' () { return config.get<boolean>('live.transcoding.resolutions.1440p') },
408 get '2160p' () { return config.get<boolean>('live.transcoding.resolutions.2160p') } 417 get '2160p' () { return config.get<boolean>('live.transcoding.resolutions.2160p') }
418 },
419 REMOTE_RUNNERS: {
420 get ENABLED () { return config.get<boolean>('live.transcoding.remote_runners.enabled') }
409 } 421 }
410 } 422 }
411 }, 423 },