mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Set equal to nginx max body size
This commit is contained in:
parent
00195f1615
commit
708ab6ecde
@ -46,8 +46,8 @@ const createServer = options => {
|
|||||||
app.use(helmet())
|
app.use(helmet())
|
||||||
app.use('/.well-known/', webfinger())
|
app.use('/.well-known/', webfinger())
|
||||||
app.use(express.static('public'))
|
app.use(express.static('public'))
|
||||||
app.use(bodyParser.json({ limit: '50mb' }))
|
app.use(bodyParser.json({ limit: '10mb' }))
|
||||||
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }))
|
app.use(bodyParser.urlencoded({ limit: '10mb', extended: true }))
|
||||||
server.applyMiddleware({ app, path: '/' })
|
server.applyMiddleware({ app, path: '/' })
|
||||||
|
|
||||||
return { server, app }
|
return { server, app }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user