main
rw-r--r--
1.3 KB
rw-r--r--
658 B
rw-r--r--
3.9 KB
rw-r--r--
132 B
mm
rwxr-xr-x
13.3 MB

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

  • cfdns is 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

  1. Clone the repository:

    git clone https://github.com/bryfry/mm.git
    cd mm
    
  2. 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"