Files
docker_stack/karylab-minecraft/velocity-config.toml
2025-12-31 23:25:24 +08:00

55 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Velocity 配置檔範例
# 啟動容器後會自動生成在 /docker/minecraft/velocity/velocity.toml
# Config version. Do not change this
config-version = "2.7"
# 綁定地址和端口
bind = "0.0.0.0:11100"
# 伺服器列表 MOTD
motd = "<gradient:#09add3:#d33682>Karylab Minecraft Network</gradient>"
# 最大顯示玩家數
show-max-players = 100
# 正版驗證
online-mode = false
# 防止透過代理/VPN連線 (會踢掉使用VPN的玩家建議關閉)
prevent-client-proxy-connections = false
# 如果有相同玩家嘗試重複登入,是否踢掉已在線的玩家
kick-existing-players = true
# 後端伺服器列表
[servers]
parkour-spiral = "127.0.0.1:1110"
parkour-volcano = "127.0.0.1:1120"
# 強制主機域名路由(關鍵!)
[forced-hosts]
"parkour-spiral.karylab.uk" = ["parkour-spiral"]
"parkour-volcano.karylab.uk" = ["parkour-volcano"]
# 啟用 modern forwarding (讓後端伺服器知道玩家真實IP)
player-info-forwarding-mode = "modern"
# 是否宣告伺服器支援 Forge 模組 (原版伺服器設為 false)
announce-forge = false
# 伺服器列表 Ping 穿透設定 (當玩家在 Minecraft 多人遊戲列表看到伺服器時,顯示的資訊從哪來)
ping-passthrough = "DISABLED"
# 轉發密鑰檔案
forwarding-secret-file = "forwarding.secret"
[advanced]
# 壓縮閾值
compression-threshold = 256
compression-level = -1
login-ratelimit = 3000
# 是否在日誌記錄玩家 IP
enable-player-address-logging = true