mirror of
https://github.com/labring/laf.git
synced 2025-12-08 20:26:22 +00:00
fix(server): fix too large entity error when upload large func (#1882)
This commit is contained in:
parent
d9f527b5dc
commit
fdf96bb51d
@ -7,6 +7,7 @@ import { ServerConfig } from './constants'
|
||||
import { InitializerService } from './initializer/initializer.service'
|
||||
import { SystemDatabase } from './system-database'
|
||||
import * as helmet from 'helmet'
|
||||
import * as bodyParser from 'body-parser'
|
||||
|
||||
async function bootstrap() {
|
||||
await SystemDatabase.ready
|
||||
@ -31,6 +32,7 @@ async function bootstrap() {
|
||||
|
||||
app.use(compression())
|
||||
app.use(helmet.hidePoweredBy())
|
||||
app.use(bodyParser.json({ limit: '1mb' }))
|
||||
|
||||
// for swagger api
|
||||
const config = new DocumentBuilder()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user