modify: 集成文件上传

This commit is contained in:
2026-04-20 17:11:31 +08:00
parent 69d1c5fc67
commit 55463a9d07
25 changed files with 736 additions and 44 deletions
+2
View File
@@ -27,6 +27,7 @@ def app_run(app_config: dict, default_config: dict):
server_config = app_config.get("server", {})
host = server_config.get("host", "0.0.0.0")
port = server_config.get("port", 8000)
timeout_keep_alive = server_config.get("timeout_keep_alive", 5)
# 打包环境强制禁用重载
is_frozen = getattr(sys, "frozen", False)
@@ -54,6 +55,7 @@ def app_run(app_config: dict, default_config: dict):
workers=workers,
log_level="debug" if app_config.get("debug", False) else "info",
access_log=True,
timeout_keep_alive=timeout_keep_alive,
)