perf: change the maximum limit of request body to 10MB (#2936)

#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

将 http 请求体的最大字节数改为 10m。

Ref https://github.com/halo-dev/halo/issues/2861#issuecomment-1339526589

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2861

#### Special notes for your reviewer:

测试方式:

1. 在 Console 端新建文章,保存大量文本内容(最快方式是截图或者复制图片到编辑器,这时候因为会转为 base64,所以内容会很大)
2. 保存文章,检查是否成功。

#### Does this PR introduce a user-facing change?

```release-note
修改 HTTP 请求体最大字节数的限制,修复保存大内容文章异常的问题。
```
pull/2941/head^2
Ryan Wang 2022-12-13 23:38:48 +08:00 committed by GitHub
parent a9a65dd408
commit df0e6cff49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ spring:
init: init:
mode: always mode: always
platform: h2 platform: h2
codec:
max-in-memory-size: 10MB
halo: halo:
external-url: "http://${server.address:localhost}:${server.port}" external-url: "http://${server.address:localhost}:${server.port}"