- server: Node.js TCP中继服务器,支持多节点集群 - web: React管理面板(仪表盘、房间管理、节点管理) - client: Electron桌面客户端(连接、创建/加入房间、本地代理) - deploy: Ubuntu一键部署脚本
32 lines
498 B
Plaintext
32 lines
498 B
Plaintext
# FunMC Relay Server Configuration
|
|
|
|
# Relay TCP port for Minecraft traffic
|
|
RELAY_PORT=25565
|
|
|
|
# HTTP API port
|
|
API_PORT=3000
|
|
|
|
# Node identification
|
|
NODE_ID=
|
|
NODE_NAME=relay-node-1
|
|
|
|
# Master node configuration
|
|
IS_MASTER=true
|
|
MASTER_URL=http://master-host:3000
|
|
|
|
# Security
|
|
SECRET=your-secret-key-here
|
|
|
|
# Limits
|
|
MAX_ROOMS=100
|
|
MAX_PLAYERS_PER_ROOM=20
|
|
|
|
# Heartbeat interval in ms
|
|
HEARTBEAT_INTERVAL=10000
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
|
|
# Public host (for worker nodes to report to master)
|
|
PUBLIC_HOST=0.0.0.0
|