mirror of
https://codeberg.org/tacerus/teddit.git
synced 2025-01-08 12:22:33 +01:00
add bodyParser limits
This commit is contained in:
parent
71f99b44fc
commit
a5779cac53
4
app.js
4
app.js
@ -158,8 +158,8 @@ if(config.trust_proxy) {
|
|||||||
app.set('trust proxy', config.trust_proxy_address)
|
app.set('trust proxy', config.trust_proxy_address)
|
||||||
}
|
}
|
||||||
|
|
||||||
app.use(bodyParser.urlencoded({ extended: true }))
|
app.use(bodyParser.urlencoded({ extended: true, limit: '10mb' }))
|
||||||
app.use(bodyParser.json())
|
app.use(bodyParser.json({ limit: '10mb' }))
|
||||||
app.use(express.static(`${__dirname}/static`))
|
app.use(express.static(`${__dirname}/static`))
|
||||||
|
|
||||||
app.set('views', './views')
|
app.set('views', './views')
|
||||||
|
Loading…
Reference in New Issue
Block a user