finai/backend/.env

38 lines
1.5 KiB
Bash
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.

APP_NAME=财务大模型智能问答客服系统
ENVIRONMENT=development
DATABASE_URL=postgresql+psycopg://finance_ai:finance_ai@127.0.0.1:5432/finance_ai
# DATABASE_URL=postgresql+psycopg://postgres:zcDsj2026@127.0.0.1:5432/finai
JWT_SECRET_KEY=vWQqGzVAi01hq126fXZdHV4W4S2Tx4BiOvWuwe5m8ubAPPitLpSh-Y4mXC50d7lM
JWT_EXPIRE_MINUTES=480
SMS_PROVIDER=tencent
ADP_PROVIDER=tencent
STORAGE_PROVIDER=local
LOCAL_STORAGE_DIR=./storage
ALLOWED_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost,http://localhost:8080,http://127.0.0.1:8080
# 腾讯云 ADP/LKE HTTP SSE 访客流 (仅需 AppKey)
# ADP 控制台 -> 应用 -> 服务状态 -> API 管理 -> 复制 AppKey
# 切到真实 ADP 时改成: ADP_PROVIDER=tencent
ADP_BOT_APP_KEY=PMDFsDBvgtatjsLrNGuilUExVWzyILItlkzBBumLcWuCIBJzDkBDtRzJlLUFzCwtUfndHAtfJWOAYWMYyfKqPHqBNWpQyaHXbXcuwTFKKMoOWywaOtjjhQhWwzVoiVMh
ADP_ENDPOINT=https://wss.lke.cloud.tencent.com/adp/v2/chat
ADP_TIMEOUT_SECONDS=120
# ADP 共享知识库 ID从控制台 URL 的 knowledge_biz_id 取)
# 文档管理 APIListDoc/SaveDoc/DeleteDoc会改用此 ID留空则回退到应用自身的 robot biz id
ADP_KNOWLEDGE_BIZ_ID=2039231263189396864
# 调用 ADP 云 API (ListDoc 等) 需要主账号 / 子账号的 SecretId+SecretKey
# 获取: 腾讯云控制台 -> 访问管理 -> 访问密钥 -> 新建密钥
# 强烈建议: 用子账号 + 仅 LKE 读权限, 不要用主账号 root 密钥
TENCENT_SECRET_ID=AKIDdKpIf2HUaSAdstfOvEJ9l9ICrIemxueB
TENCENT_SECRET_KEY=KPHvKUP6Y7VeYDcqrfPANPDnDRVN0Ree
TENCENT_REGION=ap-guangzhou