Server: avoid request entity too large for requests between pods

This commit is contained in:
Chocobozzz 2016-08-23 16:24:11 +02:00
parent 9e8aa10d94
commit def16d33d1

View File

@ -49,7 +49,7 @@ 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({