feat: 更改系统环境参数

This commit is contained in:
2023-07-30 22:02:48 +08:00
parent 437668ee13
commit 2b191b3adc
3 changed files with 26 additions and 20 deletions

View File

@@ -8,15 +8,15 @@
为了适配 pterodactyl 面板,本插件除了从 `config.yml` 中配置服务器信息以外,还支持从环境变量中读取
| 环境变量名称 | 描述 | 对应 config 值 |
|:-----------------------|:-------------------|:------------------------------|
| BALL_SERVER_HOST | 仓鼠球服务器地址 | ball-server.host |
| BALL_SERVER_PORT | 仓鼠球服务器端口 | ball-server.port |
| BALL_EVENT_LOOP_THREAD | 处理器线程数 | ball-server.event-loop-thread |
| SERVER_IP | 本服务器 IP | server-info.host |
| SERVER_PORT | 本服务器端口 | server-info.port |
| BALL_SERVER_INFO_ID | 本服务器唯一识别码,最长 32 字符 | server-info.id |
| BALL_SERVER_INFO_NAME | 本服务端名称,用于展示给玩家看 | server-info.name |
| 环境变量名称 | 描述 | 对应 config 值 |
|:----------------------------|:-------------------|:------------------------------|
| BALL_SERVER_HOST | 仓鼠球服务器地址 | ball-server.host |
| BALL_SERVER_PORT | 仓鼠球服务器端口 | ball-server.port |
| BALL_EVENT_LOOP_THREAD | 处理器线程数 | ball-server.event-loop-thread |
| BALL_LOCAL_SERVER_IP | 本服务器 IP | server-info.host |
| BALL_LOCAL_SERVER_PORT | 本服务器端口 | server-info.port |
| BALL_LOCAL_SERVER_INFO_ID | 本服务器唯一识别码,最长 32 字符 | server-info.id |
| BALL_LOCAL_SERVER_INFO_NAME | 本服务端名称,用于展示给玩家看 | server-info.name |
# 添加依赖