90 lines
3.9 KiB
Plaintext
90 lines
3.9 KiB
Plaintext
|
|
# ══════════════════════════════════════════════════
|
|||
|
|
# AI合规智能中枢 — 环境变量配置
|
|||
|
|
# 复制本文件为 .env 并填写实际值
|
|||
|
|
# cp .env.example .env
|
|||
|
|
# ══════════════════════════════════════════════════
|
|||
|
|
|
|||
|
|
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
# LLM 云端 API 配置(至少填写一个)
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
# LLM 提供商:deepseek 或 qwen
|
|||
|
|
LLM_PROVIDER=deepseek
|
|||
|
|
|
|||
|
|
# DeepSeek API(推荐,约¥1/百万tokens)
|
|||
|
|
# 申请地址:https://platform.deepseek.com
|
|||
|
|
DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|||
|
|
# 可选模型:deepseek-chat(通用)、deepseek-reasoner(推理增强)
|
|||
|
|
DEEPSEEK_MODEL=deepseek-chat
|
|||
|
|
|
|||
|
|
# 阿里云 DashScope / Qwen API(备用)
|
|||
|
|
# 申请地址:https://dashscope.aliyuncs.com
|
|||
|
|
DASHSCOPE_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|||
|
|
# 可选模型:qwen-plus、qwen-max、qwen-turbo
|
|||
|
|
QWEN_MODEL=qwen-plus
|
|||
|
|
|
|||
|
|
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
# 数据库密码
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
# PostgreSQL 密码(生产环境请使用强密码)
|
|||
|
|
POSTGRES_PASSWORD=compliance_secure_2026
|
|||
|
|
|
|||
|
|
# Redis 密码
|
|||
|
|
REDIS_PASSWORD=redis_secure_2026
|
|||
|
|
|
|||
|
|
# Neo4j 密码(不能包含特殊字符)
|
|||
|
|
NEO4J_PASSWORD=neo4j_secure_2026
|
|||
|
|
|
|||
|
|
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
# AI 模型配置
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
# HuggingFace 镜像(国内加速,默认使用 hf-mirror.com)
|
|||
|
|
HF_ENDPOINT=https://hf-mirror.com
|
|||
|
|
|
|||
|
|
# 嵌入服务设备:cpu 或 cuda(有 GPU 时改为 cuda)
|
|||
|
|
EMBEDDING_DEVICE=cpu
|
|||
|
|
|
|||
|
|
# MinerU 解析设备:cpu 或 cuda
|
|||
|
|
MCP_DEVICE=cpu
|
|||
|
|
|
|||
|
|
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
# 应用配置
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
# 运行环境:development / production
|
|||
|
|
APP_ENV=development
|
|||
|
|
|
|||
|
|
# 日志级别:DEBUG / INFO / WARNING / ERROR
|
|||
|
|
LOG_LEVEL=INFO
|
|||
|
|
|
|||
|
|
# API 认证密钥(用于内部服务间调用)
|
|||
|
|
API_SECRET_KEY=change_this_to_a_random_secret_key_32chars
|
|||
|
|
|
|||
|
|
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
# 监控配置(可选)
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
# Grafana 管理员密码
|
|||
|
|
GRAFANA_PASSWORD=admin
|
|||
|
|
|
|||
|
|
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
# 外部推送配置(闭环③法规监控推送用)
|
|||
|
|
# ──────────────────────────────────────────────────
|
|||
|
|
|
|||
|
|
# 邮件推送(可选)
|
|||
|
|
# SMTP_HOST=smtp.example.com
|
|||
|
|
# SMTP_PORT=587
|
|||
|
|
# SMTP_USER=your@email.com
|
|||
|
|
# SMTP_PASSWORD=your_smtp_password
|
|||
|
|
|
|||
|
|
# Webhook 推送(可选,支持飞书/钉钉/企业微信)
|
|||
|
|
# WEBHOOK_URL=https://hooks.slack.com/services/xxx
|