Files
suanming/.env.example
2025-08-21 22:59:35 +08:00

55 lines
1.1 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.
# 前端环境变量
# 本地API服务器地址
VITE_API_BASE_URL=http://localhost:3001/api
# 后端环境变量
# 服务器端口
PORT=3001
# JWT密钥生产环境请使用强密码
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=7d
# 数据库配置
DB_PATH=./numerology.db
# 运行环境
NODE_ENV=development
# CORS配置生产环境请设置具体域名
CORS_ORIGIN=http://localhost:5173,http://localhost:4173
# 日志级别
LOG_LEVEL=info
# 会话清理间隔(毫秒)
SESSION_CLEANUP_INTERVAL=3600000
# 文件上传限制MB
FILE_UPLOAD_LIMIT=10
# API请求限制
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# AI解读功能配置
# AI API密钥请替换为您的实际API Key
VITE_AI_API_KEY=your-openai-api-key-here
# AI API服务地址
VITE_AI_API_URL=https://api.openai.com/v1/chat/completions
# AI模型名称
VITE_AI_MODEL_NAME=gpt-3.5-turbo
# AI请求最大Token数
VITE_AI_MAX_TOKENS=2000
# AI温度参数0-2控制回答的创造性
VITE_AI_TEMPERATURE=0.7
# AI请求超时时间毫秒
VITE_AI_TIMEOUT=30000
# AI流式响应
VITE_AI_STREAM=true