Files
billai/server/config.yaml
CHE LIANG ZHAO ad6a6d44ea fix(web, server): 修复数据分析页面总支出和大盘数据错误
- 数据分析页面改为使用后端返回的聚合统计,而不是前端计算
- 移除后端 page_size 最大 100 的限制,允许获取更多数据
- 确保账单管理和数据分析页面使用相同的数据源,保证一致性
- 更新版本号至 1.0.6
2026-01-14 15:52:02 +08:00

61 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# BillAI 服务器配置文件
# 应用版本
version: "1.0.6"
# 服务配置
server:
port: 8080
# Python 配置 (subprocess 模式使用)
python:
# Python 解释器路径(相对于项目根目录或绝对路径)
path: analyzer/venv/bin/python
# 分析脚本路径(相对于项目根目录)
script: analyzer/clean_bill.py
# Analyzer 服务配置 (HTTP 模式使用)
analyzer:
# Python 分析服务 URL
url: http://localhost:8001
# 适配器模式: http (推荐) 或 subprocess
mode: http
# 文件目录配置(相对于项目根目录)
directories:
upload: server/uploads
output: server/outputs
# MongoDB 配置
mongodb:
# MongoDB 连接 URI带认证
uri: mongodb://admin:password@localhost:27017
# 数据库名称
database: billai
# 集合名称
collections:
# 原始数据集合
raw: bills_raw
# 清洗后数据集合
cleaned: bills_cleaned
# 用户认证配置
auth:
# JWT 密钥(生产环境请使用更复杂的密钥)
jwt_secret: "billai-secret-key-2026"
# Token 过期时间(小时)
token_expiry: 1 # 1小时
# 用户列表
users:
- username: clz
password: m4a14213230552
name: 管理员
email: fadinglight9291117@126.com
role: admin
# - username: user
# password: user123
# name: 普通用户
# email: user@billai.com
# role: user