diff options
author | Chocobozzz <me@florianbigard.com> | 2020-10-28 15:24:40 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | a056ca4813c82f490dcd31ac97a64d6bf76d3dcc (patch) | |
tree | 11a0638cb92eee94f404e294f54632212836a4a6 /server/initializers/config.ts | |
parent | d846d99c6c81028bb7bd3cb20abd433cbf396a22 (diff) | |
download | PeerTube-a056ca4813c82f490dcd31ac97a64d6bf76d3dcc.tar.gz PeerTube-a056ca4813c82f490dcd31ac97a64d6bf76d3dcc.tar.zst PeerTube-a056ca4813c82f490dcd31ac97a64d6bf76d3dcc.zip |
Add max lives limit
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 9e8927350..b70361aa9 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -202,6 +202,9 @@ const CONFIG = { | |||
202 | get ENABLED () { return config.get<boolean>('live.enabled') }, | 202 | get ENABLED () { return config.get<boolean>('live.enabled') }, |
203 | 203 | ||
204 | get MAX_DURATION () { return parseDurationToMs(config.get<string>('live.max_duration')) }, | 204 | get MAX_DURATION () { return parseDurationToMs(config.get<string>('live.max_duration')) }, |
205 | get MAX_INSTANCE_LIVES () { return config.get<number>('live.max_instance_lives') }, | ||
206 | get MAX_USER_LIVES () { return config.get<number>('live.max_user_lives') }, | ||
207 | |||
205 | get ALLOW_REPLAY () { return config.get<boolean>('live.allow_replay') }, | 208 | get ALLOW_REPLAY () { return config.get<boolean>('live.allow_replay') }, |
206 | 209 | ||
207 | RTMP: { | 210 | RTMP: { |