Initial commit: FunConnect project with server, relay, client and admin panel
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,31 +1,14 @@
|
||||
# FunMC Relay Server Configuration
|
||||
# FunMC 主服务端环境配置
|
||||
# 复制此文件为 .env 并修改配置
|
||||
|
||||
# Relay TCP port for Minecraft traffic
|
||||
RELAY_PORT=25565
|
||||
# 数据库连接
|
||||
DATABASE_URL=postgres://postgres:password@localhost/funmc
|
||||
|
||||
# HTTP API port
|
||||
API_PORT=3000
|
||||
# JWT 密钥(必须与客户端和中继服务器保持一致)
|
||||
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
|
||||
|
||||
# Node identification
|
||||
NODE_ID=
|
||||
NODE_NAME=relay-node-1
|
||||
# HTTP API 监听地址
|
||||
LISTEN_ADDR=0.0.0.0:3000
|
||||
|
||||
# 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
|
||||
# 日志级别
|
||||
RUST_LOG=funmc_server=debug,tower_http=info
|
||||
|
||||
Reference in New Issue
Block a user