mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #3037 from Human-Connection/3036-increase-body-parser-limit
fix: Increase body parser limit
This commit is contained in:
commit
b665957373
@ -7,6 +7,7 @@ import { getNeode, getDriver } from './db/neo4j'
|
||||
import decode from './jwt/decode'
|
||||
import schema from './schema'
|
||||
import webfinger from './activitypub/routes/webfinger'
|
||||
import bodyParser from 'body-parser'
|
||||
|
||||
const driver = getDriver()
|
||||
const neode = getNeode()
|
||||
@ -45,6 +46,8 @@ const createServer = options => {
|
||||
app.use(helmet())
|
||||
app.use('/.well-known/', webfinger())
|
||||
app.use(express.static('public'))
|
||||
app.use(bodyParser.json({ limit: '10mb' }))
|
||||
app.use(bodyParser.urlencoded({ limit: '10mb', extended: true }))
|
||||
server.applyMiddleware({ app, path: '/' })
|
||||
|
||||
return { server, app }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user