1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Add max lives limit

This commit is contained in:
Chocobozzz 2020-10-28 15:24:40 +01:00 committed by Chocobozzz
parent d846d99c6c
commit a056ca4813
19 changed files with 147 additions and 5 deletions

View file

@ -99,7 +99,10 @@ export interface CustomConfig {
enabled: boolean
allowReplay: boolean
maxDuration: number
maxInstanceLives: number
maxUserLives: number
transcoding: {
enabled: boolean

View file

@ -102,6 +102,8 @@ export interface ServerConfig {
enabled: boolean
maxDuration: number
maxInstanceLives: number
maxUserLives: number
allowReplay: boolean
transcoding: {

View file

@ -1,3 +1,5 @@
export const enum ServerErrorCode {
DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 1
DOES_NOT_RESPECT_FOLLOW_CONSTRAINTS = 1,
MAX_INSTANCE_LIVES_LIMIT_REACHED = 2,
MAX_USER_LIVES_LIMIT_REACHED = 3,
}