# 除 API Key 外,运行参数直接在 YAML 中维护,不需要手动加载 .env。 # 数据库和管理员初始化配置直接维护在本文件中,构建后随 JAR 部署。 # 切换服务器时须核对数据库地址;本文件及构建产物包含凭证,应限制访问。 server: port: 8245 servlet: session: timeout: 8h cookie: http-only: true same-site: lax # 本地 HTTP 使用 false;部署为 HTTPS 时改为 true。 secure: false spring: datasource: # 直接随 JAR 加载,避免因服务器工作目录不同而遗漏外部数据库配置。 # URL 使用 UTC 会话,与项目数据库时间戳约定一致;驱动由 JDBC URL 自动识别。 url: "jdbc:mysql://192.168.10.3:3307/rz_gb?useUnicode=true&characterEncoding=UTF-8&useSSL=false&connectionTimeZone=UTC&forceConnectionTimeZoneToSession=true" username: "root" password: "ruzhoukj@2022" application: name: rz-GB flyway: enabled: true locations: classpath:db/migration servlet: multipart: max-file-size: 20MB max-request-size: 21MB management: endpoints: web: exposure: include: health,info endpoint: health: show-details: never rz: # 首次启动创建 admin 时使用;已有账号不会重置密码,值须保留为 YAML 字符串。 admin-password: "123456" # 只有供应商 API Key 从启动进程的环境变量读取,缺少时任务会等待配置。 zlbx-base-url: https://mcp-server.zhiliaobiaoxun.com/api_v2 zlbx-api-key: ${ZLBX_API_KEY:} deepseek-base-url: https://api.deepseek.com deepseek-api-key: ${DEEPSEEK_API_KEY:} deepseek-model: deepseek-flash request-timeout-seconds: 90 max-response-bytes: 4194304 # 单任务调用次数、成本单位及分页范围的保护上限。 max-calls: 25 max-cost-units: 100 search-page-size: 50 search-max-pages: 5 # 文件大小以字节计;原件保留期以小时计,审计配置以天计。 max-file-bytes: 20971520 max-pdf-pages: 50 max-vision-pages: 20 file-retention-hours: 24 audit-retention-days: 180