Server: avoid request entity too large for requests between pods

pull/10/head
Chocobozzz 2016-08-23 16:24:11 +02:00
parent 9e8aa10d94
commit def16d33d1
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ const port = config.get('listen.port')
// For the logger // For the logger
app.use(morgan('combined', { stream: logger.stream })) app.use(morgan('combined', { stream: logger.stream }))
// For body requests // For body requests
app.use(bodyParser.json()) app.use(bodyParser.json({ limit: '500kb' }))
app.use(bodyParser.urlencoded({ extended: false })) app.use(bodyParser.urlencoded({ extended: false }))
// Validate some params for the API // Validate some params for the API
app.use(expressValidator({ app.use(expressValidator({