mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-27 04:40:08 +08:00
fix: 增加后端文件容量
This commit is contained in:
parent
05d2bb3ad7
commit
3d3f80d0c1
@ -24,7 +24,7 @@ app.proxy = true;
|
||||
yapi.app = app;
|
||||
|
||||
// app.use(bodyParser({multipart: true}));
|
||||
app.use(koaBody({ multipart: true }));
|
||||
app.use(koaBody({ multipart: true, jsonLimit: '2mb', formLimit: '1mb', textLimit: '1mb' }));
|
||||
app.use(mockServer);
|
||||
app.use(router.routes());
|
||||
app.use(router.allowedMethods());
|
||||
@ -55,5 +55,7 @@ app.use(koaStatic(yapi.path.join(yapi.WEBROOT, 'static'), { index: indexFile, gz
|
||||
|
||||
app.listen(yapi.WEBCONFIG.port);
|
||||
commons.log(
|
||||
`服务已启动,请打开下面链接访问: \nhttp://127.0.0.1${yapi.WEBCONFIG.port == '80' ? '' : ':' + yapi.WEBCONFIG.port}/`
|
||||
`服务已启动,请打开下面链接访问: \nhttp://127.0.0.1${
|
||||
yapi.WEBCONFIG.port == '80' ? '' : ':' + yapi.WEBCONFIG.port
|
||||
}/`
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user