geo/backend/.env.example

94 lines
2.9 KiB
Plaintext
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.

# ============================================================
# GEO Platform Environment Configuration
# ============================================================
# 复制此文件为 .env 并填入实际值
# cp .env.example .env
# ============================================================
# AI平台API Keys
# ============================================================
# Kimi (月之暗面) - platform.moonshot.cn
MOONSHOT_API_KEY=
# 百度千帆 (文心一言) - console.bce.baidu.com/qianfan
BAIDU_QIANFAN_API_KEY=
BAIDU_QIANFAN_SECRET_KEY=
# 豆包 (字节跳动/火山引擎) - console.volcengine.com/ark
DOUBAO_API_KEY=
DOUBAO_ENDPOINT_ID=
# DeepSeek
DEEPSEEK_API_KEY=
DEEPSEEK_MODEL=deepseek-chat
DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
DEEPSEEK_MAX_CONTEXT=64000
# OpenAI (可选)
OPENAI_API_KEY=
OPENAI_MODEL=qwen3-coder-plus
OPENAI_BASE_URL=https://coding.dashscope.aliyuncs.com/v1
# 智谱清言 (可选)
ZHIPU_API_KEY=
# 通义千问 (可选)
TONGYI_API_KEY=
# ============================================================
# 阿里云百炼(图片生成)
# ============================================================
# 万相-文生图V1 API Key
ALIYUN_DASHSCOPE_API_KEY=
# ============================================================
# LLM Provider 配置
# ============================================================
# 默认提供商: openai | deepseek
DEFAULT_LLM_PROVIDER=deepseek
DEFAULT_LLM_MODEL=qwen3-coder-plus
# 是否启用LLM功能
ENABLE_LLM=true
# ============================================================
# 数据库配置
# ============================================================
DATABASE_URL=postgresql+asyncpg://postgres:postgres123@localhost:5433/geo_platform
# ============================================================
# Redis 配置
# ============================================================
REDIS_URL=redis://localhost:6380/0
# 是否启用Redis缓存
ENABLE_REDIS=true
# ============================================================
# JWT 配置
# ============================================================
# JWT密钥生产环境必须设置至少32字符的强密钥
JWT_SECRET=your-secret-key-change-in-production-must-be-32-chars
JWT_EXPIRE_HOURS=24
# NextAuth 密钥(可选,用于某些认证功能)
SECRET_KEY=
# ============================================================
# CORS 配置
# ============================================================
CORS_ORIGINS=http://localhost:3000,http://localhost:3001
# ============================================================
# 限流配置
# ============================================================
# AI平台API调用频率限制每分钟请求数
API_RATE_LIMIT_RPM=10
LLM_RATE_LIMIT_RPM=30
# ============================================================
# Playwright 配置
# ============================================================
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright