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.
31 lines
856 B
31 lines
856 B
# 服务器配置
|
|
PORT=3000
|
|
NODE_ENV=development
|
|
|
|
# 数据库配置
|
|
DATABASE_URL=mysql://user:password@localhost:3306/aguzhitou
|
|
|
|
# Redis配置
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# JWT配置
|
|
JWT_SECRET=your-secret-key-min-32-characters-long
|
|
JWT_EXPIRES_IN=7d
|
|
|
|
# 日志配置
|
|
LOG_LEVEL=info
|
|
LOG_DIR=./logs
|
|
|
|
# 限流配置
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# 自定义数据源接口配置(本系统作为数据源对外提供服务)
|
|
# 外部系统可通过 http://localhost:3000/v1 访问以下接口:
|
|
# - GET /v1/stock/klines/:symbol 查询股票K线
|
|
# - POST /v1/stock/klines/batch 批量查询K线
|
|
# - GET /v1/stock/symbols 查询股票列表
|
|
# - GET /v1/stock/trading-dates 查询交易日历
|
|
# - GET /v1/admin/health 健康检查
|
|
# - GET /v1/admin/source/status 数据源状态
|