Server: avoid request entity too large for requests between pods
authorChocobozzz <florian.bigard@gmail.com>
Tue, 23 Aug 2016 14:24:11 +0000 (16:24 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Tue, 23 Aug 2016 14:24:11 +0000 (16:24 +0200)
server.js

index 676597faefbfc295707965a53050777eaba824a3..8010d3e0698fdd443a8bdfe12966e5459034c16a 100644 (file)
--- a/server.js
+++ b/server.js
@@ -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({