Files
ai/env.example
2025-07-08 00:52:10 +08:00

68 lines
1.7 KiB
Plaintext
Raw Permalink 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.

# 数据库配置
DATABASE_URL=postgresql://pandora_user:pandora_password@localhost:5432/pandora
POSTGRES_DB=pandora
POSTGRES_USER=pandora_user
POSTGRES_PASSWORD=your-secure-password
# Redis配置
REDIS_URL=redis://localhost:6379
REDIS_PASSWORD=your-redis-password
# JWT配置
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=7d
# 服务器配置
PORT=3001
NODE_ENV=development
CORS_ORIGIN=http://localhost:3000
# 邮件配置
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM=Pandora <your-email@gmail.com>
# 前端配置
VITE_API_URL=http://localhost:3001
VITE_APP_NAME=Pandora
# 域名配置
DOMAIN_PATH1=path1.com
DOMAIN_PATH2=path2.com
DOMAIN_PATH3=path3.com
# 聊天配置 - 网站代理目标地址
CLAUDE_TARGET_URL=https://claude.ai
CHATGPT_TARGET_URL=https://chat.openai.com
GROK_TARGET_URL=https://grok.x.ai
# 聊天配置 - 自定义User-Agent可选
CLAUDE_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
CHATGPT_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
GROK_USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
# 聊天配置 - 超时和限制
CHAT_TIMEOUT=10000
CHAT_RATE_LIMIT=100
# 日志配置
LOG_LEVEL=info
# 监控配置 (可选)
GRAFANA_PASSWORD=admin
# 安全配置
BCRYPT_ROUNDS=12
RATE_LIMIT_WINDOW=15m
RATE_LIMIT_MAX=100
# 文件上传配置
UPLOAD_MAX_SIZE=10mb
UPLOAD_PATH=./uploads
# 备份配置
BACKUP_ENABLED=true
BACKUP_SCHEDULE=0 2 * * *
BACKUP_RETENTION_DAYS=30