# BillAI 服务器配置文件 # 应用版本 version: "1.0.7" # 服务配置 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