add bodyParser limits

This commit is contained in:
teddit 2021-03-27 21:47:11 +01:00
parent 71f99b44fc
commit a5779cac53

4
app.js
View File

@ -158,8 +158,8 @@ if(config.trust_proxy) {
app.set('trust proxy', config.trust_proxy_address)
}
app.use(bodyParser.urlencoded({ extended: true }))
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: true, limit: '10mb' }))
app.use(bodyParser.json({ limit: '10mb' }))
app.use(express.static(`${__dirname}/static`))
app.set('views', './views')