You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
857 B
48 lines
857 B
# 应用配置
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
API_PREFIX=/api/v1
|
|
|
|
# 数据库配置
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/futures_analysis?schema=public
|
|
|
|
# Redis配置
|
|
REDIS_URL=redis://localhost:6379
|
|
REDIS_PASSWORD=
|
|
|
|
# JWT配置
|
|
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
|
JWT_EXPIRES_IN=1h
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
|
|
# 行情数据源配置
|
|
MARKET_DATA_PROVIDER=mock
|
|
MARKET_DATA_API_KEY=
|
|
MARKET_DATA_API_SECRET=
|
|
MARKET_DATA_WS_URL=
|
|
|
|
# OpenAI配置 (用于AI分析)
|
|
OPENAI_API_KEY=
|
|
OPENAI_BASE_URL=
|
|
OPENAI_MODEL=gpt-4-turbo-preview
|
|
|
|
# 邮件配置
|
|
SMTP_HOST=
|
|
SMTP_PORT=587
|
|
SMTP_USER=
|
|
SMTP_PASS=
|
|
SMTP_FROM=
|
|
|
|
# 日志配置
|
|
LOG_LEVEL=debug
|
|
LOG_FILE=logs/app.log
|
|
|
|
# 安全配置
|
|
CORS_ORIGIN=http://localhost:5173
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# 监控配置
|
|
METRICS_ENABLED=true
|
|
METRICS_PORT=9090
|