项目文件上传:单文件 ≤ 50 MiB、总计 ≤ 200 MiB、最多 500 个文件

This commit is contained in:
lxp
2026-10-27 15:26:19 +08:00
parent 64fb4a7325
commit c01ef63482
8 changed files with 26 additions and 23 deletions
@@ -17,8 +17,8 @@ import java.util.Map;
public class VibemakeProperties {
private Map<String, String> types = defaultTypes();
private long maxTextBytes = 1024 * 1024;
private long maxFileBytes = 10 * 1024 * 1024;
private long maxRequestBytes = 50 * 1024 * 1024;
private long maxFileBytes = 50 * 1024 * 1024;
private long maxRequestBytes = 200 * 1024 * 1024;
private Duration captchaTtl = Duration.ofMinutes(2);
private Duration tokenTtl = Duration.ofHours(24);
private Gitea gitea = new Gitea();