The REST server that powers the public API for mcstatus.io.
| .github/workflows | ||
| src | ||
| .gitignore | ||
| config.example.yml | ||
| docker-compose.yml | ||
| dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
Ping Server
The status retrieval/ping server that powers the API for mcstatus.io. This repository is open source to allow developers to run their own Minecraft server status API server.
If you do not know what you are doing, or think that the cache durations enforced on our official website are tolerable, I would highly recommend using the official API instead. It is much more reliable and reduces the complexity of hosting it yourself.
Official API Documentation
Requirements
Installation
- Clone the repository to a folder
git clone https://github.com/mcstatus-io/ping-server.git
- Move the working directory into the folder
cd ping-server
- Install all required dependencies
go get ...
- Build the executable
- Using GNU make
make
- Without GNU make
go build -o .\bin\main.exe .\src\*.go(Windows)go build -o bin/main src/*.go(Unix)
- Using GNU make
- Copy the
config.example.ymlfile toconfig.ymland edit the details - Start the API server
.\bin\main.exe(Windows)bin/main(Unix)