0
0
mirror of https://github.com/Pumpkin-MC/Pumpkin-Website.git synced 2025-07-23 10:11:41 +00:00
Files
Pumpkin-Website/docs/zh_cn/config/proxy.md
2025-07-01 19:56:46 +02:00

1.4 KiB
Raw Permalink Blame History

代理

许多服务器使用代理来管理连接并在服务器之间分配玩家。Pumpkin 支持以下代理协议:

Tip

对于大多数服务器网络,建议使用 Velocity。与 BungeeCord 相比Velocity 更现代且性能更好。

配置代理

enabled: 布尔值

启用对代理的支持。

:::code-group

[proxy]
enabled = true

:::

Velocity 代理配置

enabled: 布尔值

是否启用 Velocity 支持。

:::code-group

[proxy.velocity]
enabled = true

:::

secret: 字符串

在 Velocity 中配置的密钥。

:::code-group

[proxy.velocity]
enabled = true
secret = "[代理密钥]"

:::

BungeeCord 代理配置

enabled: 布尔值

是否启用 BungeeCord 支持。

:::code-group

[proxy.bungeecord]
enabled = true

:::

Caution

BungeeCord 无法验证玩家信息是来自你的代理还是冒充者。确保服务器的防火墙配置正确。

默认配置

默认情况下,代理支持是禁用的。以下是默认配置:

:::code-group

[proxy]
enabled = false

[proxy.velocity]
enabled = false
secret = ""

[proxy.bungeecord]
enabled = false

:::