-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
用户部署配置: 修改scow-deployment/config.py文件中的网关配置,取消对GATEWAY 的注释,修改UPLOAD_FILE_SIZE_LIMIT的值,如将默认的1G改为50M: ```py # ------- 网关配置 ------- # # GATEWAY.UPLOAD_FILE_SIZE_LIMIT:限制整个系统上传(请求)文件的大小,可接受的格式为nginx的client_max_body_size可接受的值,默认为1G # GATEWAY = { # "UPLOAD_FILE_SIZE_LIMIT": "1G", # } # ------- 网关配置 ------- # # GATEWAY.UPLOAD_FILE_SIZE_LIMIT:限制整个系统上传(请求)文件的大小,可接受的格式为nginx的client_max_body_size可接受的值,默认为1G GATEWAY = { "UPLOAD_FILE_SIZE_LIMIT": "50M", } ``` PR合并前测试步骤,用户部署无需关注: 1、与正常流程一样拉取镜像 2、修改scow-deployment 下的config.py文件,参照用户部署配置,可将UPLOAD_FILE_SIZE_LIMIT的值改为其它值,例如5M。 3、PR未被合并前,还需要修改scow-deployment 下的generate.py,增加了对UPLOAD_FILE_SIZE_LIMIT的配置,具体参考此PR对deploy/local/generate.py文件的修改,复制即可。 4、进入文件管理,点击文件上传,展示了文件上传的最大限制。尝试上传1个10M的文件,失败 ![image](https://user-images.githubusercontent.com/25954437/227121002-df50b29a-c65c-48cb-89ff-138a9c6b899a.png)
- Loading branch information
Showing
10 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@scow/portal-web": minor | ||
"@scow/demo-vagrant": minor | ||
"@scow/gateway": minor | ||
"@scow/deploy-compose": minor | ||
--- | ||
|
||
上传文件、请求最大体积限制可配置 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ out | |
dist | ||
version.json | ||
.pnpm-store | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters