Megalodon: manage ARK servers over RCON from a web dashboard
CI / test (push) Successful in 2m26s
Release / release (push) Successful in 2m36s

Watches any number of ARK:SE servers (RCON for players and chat, the query
port for map, version and player cap), records joins, leaves, chat and an
audit trail, and keeps a player database across servers.

Control: save, broadcast, chat, whisper, kick, time of day, MOTD, wild dino
wipe, a raw console with history and macros, restarts with timed warnings and
a world save, optional start command and auto-start. Bans are kept by
Megalodon: timed, cluster-wide and re-enforced when the player returns.

Automation: schedules (every N or at times of day), Discord/ntfy/webhook
notifications, welcome message, chat word filter.

Access: viewer, moderator and admin roles, API tokens, Prometheus metrics.
cmd/fakeark simulates a server for trying it out.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-30 23:36:13 -06:00
commit 0d2cb31abf
32 files changed
+6280

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# Build: docker build -t megalodon .
FROM golang:1.27-alpine AS build
WORKDIR /src
COPY . .
RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o /megalodon ./cmd/megalodon
FROM alpine:3.20
RUN apk add --no-cache tzdata ca-certificates && adduser -D -u 10001 megalodon && mkdir /config && chown megalodon /config
COPY --from=build /megalodon /usr/local/bin/megalodon
USER megalodon
# The config file and the data directory (events, players, bans) both live under /config.
ENV MEGALODON_CONFIG=/config/megalodon.json
WORKDIR /config
EXPOSE 8480
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1:8480/healthz || exit 1
ENTRYPOINT ["megalodon", "serve", "-listen", "0.0.0.0:8480"]