mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
设置最大限制
This commit is contained in:
parent
56ac94c448
commit
4630f8fae8
1
app.js
1
app.js
@ -32,6 +32,7 @@ app.use(cors());
|
|||||||
let opts = {
|
let opts = {
|
||||||
preserveHostHdr: true,
|
preserveHostHdr: true,
|
||||||
reqAsBuffer: true,
|
reqAsBuffer: true,
|
||||||
|
limit:"50mb",
|
||||||
//转发之前触发该方法
|
//转发之前触发该方法
|
||||||
proxyReqPathResolver: function(req, res) {
|
proxyReqPathResolver: function(req, res) {
|
||||||
//这个代理会把匹配到的url(下面的 ‘/api’等)去掉,转发过去直接404,这里手动加回来,
|
//这个代理会把匹配到的url(下面的 ‘/api’等)去掉,转发过去直接404,这里手动加回来,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user