feat: 增加 YAML 配置与一键启动脚本
This commit is contained in:
@@ -1,9 +1,18 @@
|
||||
APP_NAME=YG Fine-Tune Platform API
|
||||
APP_ENV=local
|
||||
API_PREFIX=/api
|
||||
LOG_LEVEL=INFO
|
||||
LOG_DIR=./logs
|
||||
LOG_FILE_PREFIX=backend
|
||||
LOG_ERROR_FILE_PREFIX=error
|
||||
LOG_MAX_BYTES=20971520
|
||||
LOG_RETENTION_DAYS=10
|
||||
# 默认自动读取 backend/config.yaml。设置此变量可切换到其他 YAML 文件。
|
||||
BACKEND_CONFIG_FILE=./config.yaml
|
||||
|
||||
# 下列环境变量按需启用,并优先于 YAML 中的配置。
|
||||
# DATABASE_BASE_URL=postgresql+psycopg://localhost:5432/yg_ft
|
||||
# DATABASE_USERNAME=yg_ft
|
||||
# DATABASE_PASSWORD=change_me
|
||||
# DATABASE_URL=postgresql+psycopg://yg_ft:change_me@localhost:5432/yg_ft
|
||||
# DATABASE_URL 是完整连接串覆盖项,优先级高于上面三个分离项。
|
||||
# MODELTF_ROUTE_PREFIX=/modelTF
|
||||
# FRONTEND_PORT=16801
|
||||
# BACKEND_PORT=17861
|
||||
# CORS_ALLOW_ORIGINS=http://localhost:16801,http://127.0.0.1:16801
|
||||
# LOG_LEVEL=INFO
|
||||
# LOG_DIR=./logs
|
||||
# COMPUTE_MODE=real
|
||||
# COMPUTE_STATUS_SYNC_MODE=polling
|
||||
# COMPUTE_POLL_INTERVAL_SECONDS=3
|
||||
|
||||
Reference in New Issue
Block a user