2024-12-24 22:09:17 +08:00
|
|
|
# netplay-lobby-server-go
|
|
|
|
|
2024-12-24 22:10:23 +08:00
|
|
|
用 GO 编写的 Netplay 大厅服务器。需要 Go v1.13。
|
2024-12-24 22:09:17 +08:00
|
|
|
|
2024-12-24 22:10:23 +08:00
|
|
|
## 部署
|
2024-12-24 22:09:17 +08:00
|
|
|
|
|
|
|
```bash
|
2024-12-24 22:33:28 +08:00
|
|
|
CGO_ENABLED=1 go build -o netplay-lobby-server-go .
|
2024-12-24 22:09:17 +08:00
|
|
|
./netplay-lobby-server-go
|
|
|
|
```
|
|
|
|
|
2024-12-24 22:10:23 +08:00
|
|
|
## 配置
|
|
|
|
将 ```config/lobby.template.yaml``` 重命名为 ```config/lobby.yaml``` 并将配置文件放置在以下目录之一:
|
2024-12-24 22:09:17 +08:00
|
|
|
|
|
|
|
- /etc/lobby
|
|
|
|
- $HOME/.lobby
|
|
|
|
- ./config
|
|
|
|
|
2024-12-24 22:10:23 +08:00
|
|
|
## 许可证
|
2024-12-24 22:09:17 +08:00
|
|
|
|
2024-12-24 22:10:23 +08:00
|
|
|
服务器本身在 AGPLv3 许可证下发布。
|
2024-12-24 22:09:17 +08:00
|
|
|
|
2024-12-24 22:10:23 +08:00
|
|
|
该产品包含由 MaxMind 创建的 GeoLite2 数据,可从
|
|
|
|
[https://www.maxmind.com](https://www.maxmind.com) 获取。
|