feat: use config value for json body parser limit
This commit is contained in:
@@ -26,6 +26,7 @@ defaults:
|
||||
logLevel: info
|
||||
offline: false
|
||||
ha: false
|
||||
bodyParserLimit: 5mb
|
||||
# DB defaults
|
||||
api:
|
||||
isEnabled: false
|
||||
|
@@ -91,7 +91,7 @@ module.exports = async () => {
|
||||
// GraphQL Server
|
||||
// ----------------------------------------
|
||||
|
||||
app.use(bodyParser.json({ limit: '1mb' }))
|
||||
app.use(bodyParser.json({ limit: WIKI.config.bodyParserLimit }))
|
||||
await WIKI.servers.startGraphQL()
|
||||
|
||||
// ----------------------------------------
|
||||
|
Reference in New Issue
Block a user