1
0
forked from apxtri/apxtri

increase bodyparsersize to 5mb

This commit is contained in:
philc 2024-06-07 19:08:59 +02:00
parent d2ed5349fc
commit fcfc7fad6e

View File

@ -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;