feat: 增加 YAML 配置与一键启动脚本

This commit is contained in:
caoxiaozhu
2026-07-21 16:15:01 +08:00
parent a5fbe5130a
commit 7c38e37b23
15 changed files with 954 additions and 71 deletions

View File

@@ -0,0 +1,31 @@
# 后端配置模板。复制为 config.yaml 后填写本地数据库凭据。
# config.yaml 已加入 Git 忽略,不会提交真实密码。
app:
name: YG Fine-Tune Platform API
env: local
mode: local
route_prefix: /modelTF
server:
# 一键启动脚本统一读取这里的端口;端口被占用时只需修改这两项。
frontend_port: 16801
backend_port: 17861
database:
url: postgresql+psycopg://localhost:5432/yg_ft
username: yg_ft
password: "change_me"
compute:
mode: real
status_sync_mode: polling
poll_interval_seconds: 3
logging:
level: INFO
directory: ./logs
file_prefix: backend
error_file_prefix: error
max_bytes: 20971520
retention_days: 10