// project
G4meServerCtrl
A secure web interface for Docker-hosted game servers

Summary
A web interface for game servers that run as Docker containers: start and stop them, follow their logs, manage mods, files and RCON, and schedule restarts and backups, with roles per user, server and action. Rebuilt in 2026 for least privilege: the web app itself never touches Docker or the host.
Case study
- goal
- A small group of friends wanted to run their game servers (Docker containers on a shared host) without shell access to that host: start and stop them, read the logs, manage mods and config files, use RCON. And the web app should never hold root-equivalent access to Docker.
- my role
- Sole developer and maintainer: the architecture, the Angular frontend, the NestJS backend, the security hardening, CI/CD and the Kubernetes deployment. The 2026 rebuild was done with AI agents, directed, reviewed and tested by me.
- result
- Released as version 1 in October 2026 and running in production. Two small gatekeeper services are the only ones that touch Docker and the game files; the web app runs without host access. On top came scheduling, alerts, backups and sign-in with passkeys.
Project details
- Start, stop and restart game servers, with live logs (searchable history), CPU, memory and network stats, and Docker events
- Permissions per user, game server and action (CASL), with presets and a full audit log
- A file manager for allowed config, save and log files: an editor with syntax highlighting (Monaco), upload and download, versions with diff and restore
- Steam Workshop mods, an RCON console with a command catalog, and who's online
- Scheduled restarts, backups and RCON commands, and an update watch for mods, game builds and images
- Alerts to Discord, Gotify and mail about crashes, restarts, updates and requests
- Sign-in with passkeys, security keys, an authenticator app or Steam; sign-up with admin approval
- In German and English, with light and dark themes
Project information
G4meServerCtrl (Game Server Control) started in 2023 as a prototype to control game servers running as Docker containers. It was the first project where I used Prisma instead of TypeORM, and CASL for permissions.
In 2026 I rebuilt it for a small group of friends, who run their game servers with it without shell access to the host. The goal was least privilege: a web app with the Docker socket would be root-equivalent, so it now has no Docker or host access at all.
Web app
Angular and NestJS in an Nx monorepo, with live updates over WebSockets. It runs as non-root, with a read-only file system and no host folders.
Gatekeepers
Two small services without dependencies: one alone talks to Docker, with a fixed set of tasks; the other alone serves the allowed game server files.
Secure by default
Cookie sessions, CSRF and same-origin checks, passkeys and two-factor sign-in, an audit log, and Kubernetes pod security and network policies.
Every server at a glance
The dashboard shows every game server a user may see: whether it runs, who is online, its mods, and what's scheduled next.
What each user may do is set per game server and action, with presets for the usual roles.


One page per server
Start, stop and restart, the live statistics, and the log as it is written, with a search through its history.
The web app asks the Docker gatekeeper for all of this: only the gatekeeper can touch the containers.
RCON and files
An RCON console with a catalog of the game's commands, streamed live over WebSockets.
The file manager opens only the config, save and log files an admin allowed: edited in the browser with syntax highlighting, with versions, a diff and restore.


Mods and schedules
Steam Workshop mods are managed in the browser. Schedules restart, stop or back up a server, or send RCON commands, with warnings in the game first.
An update watch notices new mods, game builds and images, and restarts the server once it's empty.
For the admins
Admins see what each server's configuration uses and can check every part with one click: container, image, Steam app, mods, RCON, files, storage and backups.
Alerts about crashes, restarts, updates and requests go to Discord, Gotify or mail.

