diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-04 13:40:02 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-03-09 09:23:10 +0100 |
commit | f443a74649174b2f9347c158e30f8ac7aa3e958a (patch) | |
tree | e423bc4e2307477bda4341037b7fa04ad10adae6 /server/initializers/config.ts | |
parent | 01dd04cd5ab7b55d2a9af7d0ebf405bee9579b09 (diff) | |
download | PeerTube-f443a74649174b2f9347c158e30f8ac7aa3e958a.tar.gz PeerTube-f443a74649174b2f9347c158e30f8ac7aa3e958a.tar.zst PeerTube-f443a74649174b2f9347c158e30f8ac7aa3e958a.zip |
Add latency setting support
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 7a13a1368..6dcca9b67 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -4,9 +4,9 @@ import { dirname, join } from 'path' | |||
4 | import { decacheModule } from '@server/helpers/decache' | 4 | import { decacheModule } from '@server/helpers/decache' |
5 | import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-redundancy-config-filter.type' | 5 | import { VideoRedundancyConfigFilter } from '@shared/models/redundancy/video-redundancy-config-filter.type' |
6 | import { BroadcastMessageLevel } from '@shared/models/server' | 6 | import { BroadcastMessageLevel } from '@shared/models/server' |
7 | import { buildPath, root } from '../../shared/core-utils' | ||
7 | import { VideoPrivacy, VideosRedundancyStrategy } from '../../shared/models' | 8 | import { VideoPrivacy, VideosRedundancyStrategy } from '../../shared/models' |
8 | import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' | 9 | import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type' |
9 | import { buildPath, root } from '../../shared/core-utils' | ||
10 | import { parseBytes, parseDurationToMs } from '../helpers/core-utils' | 10 | import { parseBytes, parseDurationToMs } from '../helpers/core-utils' |
11 | 11 | ||
12 | // Use a variable to reload the configuration if we need | 12 | // Use a variable to reload the configuration if we need |
@@ -296,6 +296,10 @@ const CONFIG = { | |||
296 | 296 | ||
297 | get ALLOW_REPLAY () { return config.get<boolean>('live.allow_replay') }, | 297 | get ALLOW_REPLAY () { return config.get<boolean>('live.allow_replay') }, |
298 | 298 | ||
299 | LATENCY_SETTING: { | ||
300 | get ENABLED () { return config.get<boolean>('live.latency_setting.enabled') } | ||
301 | }, | ||
302 | |||
299 | RTMP: { | 303 | RTMP: { |
300 | get ENABLED () { return config.get<boolean>('live.rtmp.enabled') }, | 304 | get ENABLED () { return config.get<boolean>('live.rtmp.enabled') }, |
301 | get PORT () { return config.get<number>('live.rtmp.port') }, | 305 | get PORT () { return config.get<number>('live.rtmp.port') }, |