Files
billai/server/config.yaml
cheliangzhao 8a9de1b328 fix: 修复账单时间显示为UTC时区问题,改为本地时间
- 新增 LocalTime 自定义类型,JSON序列化输出本地时间格式
- 修改 CleanedBill.Time 字段类型为 LocalTime
- 更新 parseTime 函数返回 LocalTime 类型
- 前端添加 formatDateTime 工具函数(兼容处理)
- 版本号更新至 1.0.2
2026-01-11 21:40:27 +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.2"
# 服务配置
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