X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.js;h=8010d3e0698fdd443a8bdfe12966e5459034c16a;hb=f84a89f0e7e9595d2b6f6dd59181c01f562a4239;hp=b2eeeff70edcd6494f3cd23e30ad5a8a3e6cfeaf;hpb=5f698b82c7055df763f3830882ac5bad1397db23;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.js b/server.js index b2eeeff70..8010d3e06 100644 --- a/server.js +++ b/server.js @@ -49,11 +49,17 @@ const port = config.get('listen.port') // For the logger app.use(morgan('combined', { stream: logger.stream })) // For body requests -app.use(bodyParser.json()) +app.use(bodyParser.json({ limit: '500kb' })) app.use(bodyParser.urlencoded({ extended: false })) // Validate some params for the API app.use(expressValidator({ - customValidators: customValidators + customValidators: Object.assign( + {}, + customValidators.misc, + customValidators.pods, + customValidators.users, + customValidators.videos + ) })) // ----------- Views, routes and static files -----------