modify: 集成 granian/uvicorn(gunicorn 保留),启动参数保持现状用函数转换

This commit is contained in:
2026-10-13 01:59:00 +08:00
parent 3a359fa485
commit 2df1e7266c
7 changed files with 1126 additions and 579 deletions
+2
View File
@@ -33,6 +33,8 @@ debug = false
env = "production"
[production.server]
# 启动参数对各服务器通用(由 main.py 的转换函数映射,无需按服务器改配置);
# 服务器/副本数可用环境变量覆盖:APP_SERVER=granian|uvicorn|gunicorn、APP_WORKERS=<N>
access_log = false
host = "0.0.0.0"
port = 8000