From def16d33d19153c6583fa8a30634760b3d64d34c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Aug 2016 16:24:11 +0200 Subject: [PATCH] Server: avoid request entity too large for requests between pods --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 676597fae..8010d3e06 100644 --- 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({