feat: 添加 G5 房间状态数据库配置,更新环境变量,优化数据库连接逻辑,增强日志记录

This commit is contained in:
2026-03-14 17:32:59 +08:00
parent 7fab70ec2b
commit c5acfbf47b
8 changed files with 77 additions and 50 deletions

View File

@@ -40,4 +40,15 @@ REDIS_API_BASE_URL=http://localhost:3000
# ROOM_STATUS_DB_SCHEMA=room_status
# ROOM_STATUS_DB_TABLE=room_status_moment
# G5 Room Status DB Configuration (optional)
# ENABLE_G5_SYNC=true
# POSTGRES_HOST_G5=10.8.8.80
# POSTGRES_PORT_G5=5434
# POSTGRES_DATABASE_G5=log_platform
# POSTGRES_USER_G5=log_admin
# POSTGRES_PASSWORD_G5=your-password
# ROOM_STATUS_DB_SCHEMA_G5=room_status
# ROOM_STATUS_DB_TABLE_G5=room_status_moment_g5
# ROOM_STATUS_DB_MAX_CONNECTIONS_G5=5
ENABLE_LOOP_NAME_AUTO_GENERATION=true