minecraft manager (mm)
A minecraft server that lives in a cloud environment to:
- update dns for the random cloud IP address it was given
- monitor minecraft server usage (player stats) and turn off if idle
- make it easy to turn it on on-demand (not yet implemented)
Components
-
cfdnsis a wrapper around cloudflare dns sdk to check the current running systems’ external IP and update a dns domain if needed. -
Active Or Die is a lightweight utility for monitoring active connections on a specified port. If no activity exists for a defined amount of time, the server is powered off.
Quickstart
GOOS=linux GOARCH=arm64 go build .
scp mm <server>:~/
ssh ubuntu@minecraft.trustme.click sudo ~/mm install
TODO
- [] read conf file and prompt for ENV variables on install
Build
-
Clone the repository:
git clone https://github.com/bryfry/mm.git cd mm -
Build the program for your architecture:
-
For x86_64 (default):
go build -o aod main.go -
For ARM (e.g., Raspberry Pi):
GOARCH=arm64 go build -o aod main.go
-
Required Environment Variables
Place into environment file read by systemd service, for example: /etc/mm.conf
CFDNS_ZONE_NAME=""
CFDNS_SUBDOMAIN_NAME=""
CFDNS_API_TOKEN=""
AOD_PORT="25565"