1
0
forked from apxtri/apxtri

image management

This commit is contained in:
philc 2024-06-10 08:26:45 +02:00
parent abd346b150
commit 441483bcc8
3 changed files with 9 additions and 6 deletions

View File

@ -70,7 +70,7 @@ Object.keys(conf.api.appset).forEach((p) => {
// To set depending of data form or get size to send // To set depending of data form or get size to send
app.use(bodyParser.urlencoded(conf.api.bodyparse.urlencoded)); app.use(bodyParser.urlencoded(conf.api.bodyparse.urlencoded));
// To set depending of post put json data size to send // To set depending of post put json data size to send
app.use(express.json({limit:'10mb'})); app.use(express.json({limit:'10mb',type:'application/json',rawBody:true}));
app.use(bodyParser.json(conf.api.bodyparse.json)); app.use(bodyParser.json(conf.api.bodyparse.json));
app.disable("x-powered-by"); // for security app.disable("x-powered-by"); // for security
app.locals.tribeids = tribeIds; app.locals.tribeids = tribeIds;

File diff suppressed because one or more lines are too long

View File

@ -79,6 +79,7 @@
"path": "^0.12.7", "path": "^0.12.7",
"pm2": "^2.10.4", "pm2": "^2.10.4",
"readline-sync": "^1.4.10", "readline-sync": "^1.4.10",
"sharp": "^0.33.4",
"smtp-client": "^0.4.0", "smtp-client": "^0.4.0",
"stripe": "^14.4.0", "stripe": "^14.4.0",
"uuid": "^9.0.0", "uuid": "^9.0.0",