重构项目心跳数据结构为Redis LIST,更新相关文档和OpenSpec规范。主要变更包括: - 将项目心跳从STRING改为LIST类型 - 更新后端服务以支持LIST操作 - 同步更新文档和OpenSpec规范 - 统一后端端口为3001 - 添加部署指南和Windows部署文档 修复前端API请求路径,移除硬编码的localhost地址。添加PM2和Nginx配置文件模板,完善部署流程文档。更新Redis集成协议文档,明确LIST数据结构和外部项目对接规范。
21 lines
773 B
Plaintext
21 lines
773 B
Plaintext
# Example environment variables for Web_BLS_ProjectConsole
|
|
# Copy this file to `.env` and fill values before running locally
|
|
|
|
# Redis connection
|
|
REDIS_HOST=10.8.8.109 # Redis host (default: localhost)
|
|
REDIS_PORT=6379 # Redis port (default: 6379)
|
|
REDIS_PASSWORD= # Redis password (leave empty if not set)
|
|
REDIS_DB=15 # Redis database number (fixed: 15)
|
|
REDIS_CONNECT_TIMEOUT_MS=2000 # Connection timeout in ms (default: 2000)
|
|
|
|
# Command control (HTTP)
|
|
# Timeout for calling target project APIs (ms)
|
|
COMMAND_API_TIMEOUT_MS=5000
|
|
|
|
# Heartbeat liveness
|
|
# If now - lastActiveAt > threshold, treat project as offline (ms)
|
|
HEARTBEAT_OFFLINE_THRESHOLD_MS=10000
|
|
|
|
# Node environment (development|production)
|
|
NODE_ENV=development
|