The REST server that powers the public API for mcstatus.io.
Go to file
csmith1865 2b14e87912
All checks were successful
Go / build (push) Successful in 1m34s
Update config.example.yml
2025-01-16 04:15:00 +00:00
.github/workflows Update workflow 2023-12-22 22:56:19 -06:00
src Add ability to bypass cache with auth header 2024-10-26 22:48:00 +00:00
.gitignore Undo blocked servers cache list 2022-08-21 01:00:13 -05:00
config.example.yml Update config.example.yml 2025-01-16 04:15:00 +00:00
docker-compose.yml Dockerfile, Error handling, comments, docker-compose (#2) 2023-03-30 10:53:31 -05:00
dockerfile Fix dockerfile (#13) 2024-06-22 20:19:53 -05:00
go.mod Update dependencies 2024-10-21 19:12:20 -05:00
go.sum Update dependencies 2024-10-21 19:12:20 -05:00
LICENSE Add initial code 2022-07-30 22:13:16 -05:00
Makefile Update dependencies 2023-04-16 16:57:10 -05:00
README.md Update README.md 2025-01-16 04:14:15 +00:00

Ping Server

This is the source code for the API of the mcstatus.io website (api.mcstatus.io). This API server is built using Go with Fiber as the HTTP server of choice. This uses a custom Minecraft utility library found in the mcstatus-io/mcutil repository. You are free to modify and host your own copy of this server as long as the license permits. If you do not wish to self host, we host a public and free-to-use copy which you may learn more about by visiting the official API documentation.

Please note that while this repository may seem to conform to some versioning standard, it most certainly does not. Updates are pushed at random, with no semantic versioning in place. Any update (also known as a commit) may suddenly break existing configurations without notice or warranty. If you run a privately hosted ping server, please refer to the updated example configuration file before attempting to update to the latest commit.

API Documentation

https://mcstatus.io/docs

Requirements

Getting Started

# 1. Clone the repository (or download from this page)
$ git clone https://git.sumisu.xyz/csmith1865/ping-server.git

# 2. Move the working directory into the cloned repository
$ cd ping-server

# 3. Run the build script
$ make

# 4. Copy the `config.example.yml` file to `config.yml` and modify details as needed
$ cp config.example.yml config.yml

# 5. Start the development server
$ ./bin/main

# The server will be listening on http://localhost:3001 (default host + port)

License

MIT License