feat: 支持高清大图上传与处理
This commit is contained in:
@@ -34,6 +34,16 @@ docker compose logs --tail=100 web
|
||||
|
||||
容器必须显示 `healthy`。随后通过 Nginx 配置域名、HTTPS、请求体大小限制与访问日志。
|
||||
|
||||
图片上传允许单张最大 20 MB。Nginx 站点配置需要同步设置请求体上限,并为大图处理保留合理超时:
|
||||
|
||||
```nginx
|
||||
client_max_body_size 20m;
|
||||
proxy_read_timeout 120s;
|
||||
proxy_send_timeout 120s;
|
||||
```
|
||||
|
||||
修改后执行 `nginx -t`,确认通过再平滑重载 Nginx。若使用其他反向代理,也要把对应上传上限设置为至少 20 MB。
|
||||
|
||||
## 3. 数据目录
|
||||
|
||||
- SQLite:Docker 数据卷中的 `/app/data/db/huiyu.sqlite`
|
||||
|
||||
Reference in New Issue
Block a user