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/middlewares/validators/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/middlewares/validators/config.ts')
-rw-r--r-- | server/middlewares/validators/config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/validators/config.ts b/server/middlewares/validators/config.ts index 41a6ae4f9..d0071ccc1 100644 --- a/server/middlewares/validators/config.ts +++ b/server/middlewares/validators/config.ts | |||
@@ -65,6 +65,8 @@ const customConfigUpdateValidator = [ | |||
65 | body('live.enabled').isBoolean().withMessage('Should have a valid live enabled boolean'), | 65 | body('live.enabled').isBoolean().withMessage('Should have a valid live enabled boolean'), |
66 | body('live.allowReplay').isBoolean().withMessage('Should have a valid live allow replay boolean'), | 66 | body('live.allowReplay').isBoolean().withMessage('Should have a valid live allow replay boolean'), |
67 | body('live.maxDuration').custom(isIntOrNull).withMessage('Should have a valid live max duration'), | 67 | body('live.maxDuration').custom(isIntOrNull).withMessage('Should have a valid live max duration'), |
68 | body('live.maxInstanceLives').custom(isIntOrNull).withMessage('Should have a valid max instance lives'), | ||
69 | body('live.maxUserLives').custom(isIntOrNull).withMessage('Should have a valid max user lives'), | ||
68 | body('live.transcoding.enabled').isBoolean().withMessage('Should have a valid live transcoding enabled boolean'), | 70 | body('live.transcoding.enabled').isBoolean().withMessage('Should have a valid live transcoding enabled boolean'), |
69 | body('live.transcoding.threads').isInt().withMessage('Should have a valid live transcoding threads'), | 71 | body('live.transcoding.threads').isInt().withMessage('Should have a valid live transcoding threads'), |
70 | body('live.transcoding.resolutions.240p').isBoolean().withMessage('Should have a valid transcoding 240p resolution enabled boolean'), | 72 | body('live.transcoding.resolutions.240p').isBoolean().withMessage('Should have a valid transcoding 240p resolution enabled boolean'), |