Skip to content

How it works ​

GamePanel has two programs: the panel, which you install once, and the daemon, which runs on every machine that hosts game servers (a node).

How GamePanel's parts connect A browser reaches the panel over HTTPS through a reverse proxy. Each node's daemon dials out to the panel over a secure websocket and runs every game server in its own Docker container. SFTP clients connect to the daemon on port 2022; players connect straight to the containers on their game ports. BrowserSFTP clientPlayersCaddy / nginxHTTPSPanelone Go binaryweb UI and APISQLite + key fileNODEDaemonservers, files,backups, SFTPDockergame servergame serverwssdials outSFTP on port 2022, login checked with the panelgame ports, straight to the server

The panel ​

The panel is a single binary, panel. It holds:

  • the web interface, built into the binary, so there is nothing else to serve;
  • the API under /api/, which the interface itself uses;
  • the daemon endpoint under /daemon/, where nodes connect;
  • the database, one SQLite file (GAMEPANEL_DB), plus a key file next to it that encrypts two-factor secrets.

It listens on plain HTTP (127.0.0.1:8080 by default). In production, a reverse proxy in front of it handles HTTPS. See Reverse proxy and HTTPS.

The panel also runs the background work: schedules, webhook deliveries, and folding usage history into longer buckets.

One panel process ​

Run one panel process per database. Several things live in its memory, not the database:

  • node connections (each node keeps one websocket to one panel);
  • sign-in rate limits and failed-login counters (they start again from zero when the panel restarts);
  • single sign-on and passkey sign-ins in progress, and upload and download transfers in flight;
  • the list of unknown containers each node reported.

Two panels behind a load balancer would split nodes between them, each knowing only half, and each counting failed logins separately. SQLite also allows only one writer. For availability, restart the one process quickly (systemd does) and back up the database; for capacity, one panel serves many nodes, since the game servers' work happens on the nodes.

The daemon ​

The daemon, daemon, runs on each node. It:

  • keeps one websocket open to the panel (GAMEPANEL_PANEL_URL). The panel sends it orders (create, start, stop, write a file) over that connection and it sends back state, console output and usage. If the connection drops, it reconnects, waiting 1 s, 2 s, 4 s ... up to 30 s between tries. Servers keep running meanwhile;
  • creates and runs one Docker container per game server, with the server's files bind-mounted from its data directory;
  • runs the egg's install script in a separate, short-lived container;
  • serves SFTP on its own port (2022 by default) and checks each login with the panel;
  • enforces disk quotas and, if the tools are there, network limits;
  • keeps backups in its data directory, or uploads them to S3 through addresses the panel signs for it.

Because the daemon dials out, a node needs no open port for the panel. It only needs the game ports, and the SFTP port if you use SFTP.

Uploads and downloads ​

Large transfers (file uploads and downloads, backup downloads) do not go over the control websocket. The node opens a second connection to the panel for each one and the panel streams between it and your browser. Your browser only ever talks to the panel.

Who can do what ​

  • Administrators can see and do everything, including creating servers, nodes and eggs.
  • Owners have every permission on their own servers, except changing limits and things only an admin may do.
  • Subusers have only the permissions the owner gave them on that server. See Sharing access.

Someone who has no access to a server gets 404 Not Found for it, the same as for a server that does not exist, so server IDs cannot be probed.

The stack ​

PartBuilt with
Panel HTTP and APIGo net/http with huma (OpenAPI 3.1)
DatabaseSQLite through modernc.org/sqlite (pure Go, no CGO), migrations with goose
Websocketscoder/websocket
Dockermoby/moby/client
InterfaceReact 19, Vite, TanStack Query and Router, Tailwind 4, xterm.js, CodeMirror, embedded with go:embed

Released under the AGPL-3.0 license.