From 94ddfae2d0c9ea3c48a5473fbe33313e37b28052 Mon Sep 17 00:00:00 2001 From: LoveLosita <2810873701@qq.com> Date: Mon, 2 Mar 2026 15:21:50 +0800 Subject: [PATCH] =?UTF-8?q?Version:=200.4.0.dev.260302.hotfix=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=BA=86=E5=88=9A=E5=88=9A=E6=B2=A1=E6=9C=89=E8=AE=A9?= =?UTF-8?q?git=E5=81=9C=E6=AD=A2=E8=BF=BD=E8=B8=AA=E6=AD=A4=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E4=BD=BF=E5=BE=97=E6=96=87=E4=BB=B6=E4=BE=9D?= =?UTF-8?q?=E7=84=B6=E8=A2=AB=E4=B8=8A=E4=BC=A0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- backend/config.example.yaml | 39 --------------------------------- backend/config.yaml | 43 ------------------------------------- 3 files changed, 2 insertions(+), 83 deletions(-) delete mode 100644 backend/config.example.yaml delete mode 100644 backend/config.yaml diff --git a/.gitignore b/.gitignore index 02e3b4c..4e0141a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,8 @@ # 3. 配置文件与敏感信息 (Security & Configs) # 绝对不要提交包含数据库密码和 Kafka 地址的配置文件 .env -config.yaml +*.yaml +!config.example.yaml # 可以提交示例配置文件,供其他开发者参考 # 4. 临时文件与日志 (Logs & Temp) *.log diff --git a/backend/config.example.yaml b/backend/config.example.yaml deleted file mode 100644 index 7182fa5..0000000 --- a/backend/config.example.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# 应用配置文件示例 -# 包含服务器、数据库等基础配置 -# 请根据实际情况修改并保存为 config.yaml - -server: - port: 8080 - mode: debug - timeout: 30s - -database: - host: localhost - port: 3306 - user: smartflow_user - password: "put_your_database_password_here" - dbname: "put_your_database_name_here" - charset: utf8mb4 - parseTime: true - loc: Local - -jwt: - accessSecret: "put_your_jwt_access_secret_here" - refreshSecret: "put_your_jwt_refresh_secret_here" - accessTokenExpire: 15min - refreshTokenExpire: 7d - -log: - level: info - path: logs/ - -redis: - host: localhost - port: 6379 - password: "" - db: 0 - -time: - zone: "Asia/Shanghai" - semesterStartDate: "2026-03-02" #学期开始日期,一定要设定为周一,以便于计算周数 - semesterEndDate: "2026-07-19" #学期结束日期,一定要设定为周日,确保最后一周完整 \ No newline at end of file diff --git a/backend/config.yaml b/backend/config.yaml deleted file mode 100644 index 914dae1..0000000 --- a/backend/config.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# 应用配置文件 -# 包含服务器、数据库等基础配置 - -server: - port: 8080 - mode: debug - timeout: 30s - -database: - host: localhost - port: 3306 - user: smartflow_user - password: "smartflow_password_456" - dbname: "smartflow" - charset: utf8mb4 - parseTime: true - loc: Local - -jwt: - accessSecret: "smartflow_jwt_access_secret_123" - refreshSecret: "smartflow_jwt_refresh_secret_123" - accessTokenExpire: 15min - refreshTokenExpire: 7d - -log: - level: info - path: logs/ - -redis: - host: localhost - port: 6379 - password: "" - db: 0 - -time: - zone: "Asia/Shanghai" - semesterStartDate: "2026-03-02" #学期开始日期,一定要设定为周一,以便于计算周数 - semesterEndDate: "2026-07-19" #学期结束日期,一定要设定为周日,确保最后一周完整 - -agent: - workerModel: "doubao-seed-1-6-lite-251015" # 智能体使用的Worker模型,需根据实际情况调整 - strategistModel: "deepseek-v3-2-251201" # 策略师使用的Worker模型,需根据实际情况调整 - baseURL: "https://ark.cn-beijing.volces.com/api/v3" # Worker服务的基础URL,需根据实际情况调整 \ No newline at end of file