From fcfc7fad6e5642a50ad3f73bfacb8cdadf041c37 Mon Sep 17 00:00:00 2001 From: philc Date: Fri, 7 Jun 2024 19:08:59 +0200 Subject: [PATCH] increase bodyparsersize to 5mb --- apxtri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apxtri.js b/apxtri.js index 5dd2176..2fb76dd 100755 --- a/apxtri.js +++ b/apxtri.js @@ -70,7 +70,7 @@ Object.keys(conf.api.appset).forEach((p) => { // To set depending of data form or get size to send app.use(bodyParser.urlencoded(conf.api.bodyparse.urlencoded)); // To set depending of post put json data size to send -app.use(express.json()); +app.use(express.json({limit:'10mb'})); app.use(bodyParser.json(conf.api.bodyparse.json)); app.disable("x-powered-by"); // for security app.locals.tribeids = tribeIds;