Files
AIRegulation-Deployment/.env.example

90 lines
3.9 KiB
Plaintext
Raw Normal View History

2026-04-23 09:58:47 +08:00
# ══════════════════════════════════════════════════
# 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