mirror of
https://github.com/patdelphi/suanming.git
synced 2026-02-27 21:23:12 +08:00
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
# 前端环境变量
|
||
# 本地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 |