Commit graph

6 commits

Author SHA1 Message Date
neil
51db28f3d5
Rollback: restore a server's world from any of its backups, with a Current marker
Manage gets a Backup section (between World and Logs) listing the server's automatic and manual
backups. Rolling back is only allowed while the server is stopped and nothing else, such as an
automatic backup, is running on it; the server claims the busy flag atomically so the two can't race.
A run players were on is backed up first. The new world is extracted to a staging folder and checked
before the old one is deleted.

The backup that holds the world as it is now is marked Current (its button is disabled, and the
Backups page tags it). It's tracked in backups/<game>/<container>.current: set by automatic backups
and rollbacks, none while players have been on, newest automatic backup when there's no record.
Rolling back to an automatic backup can keep the Current backup as a manual one (or make one if
nothing is current), warning when that pushes out the oldest of 5 manual backups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 22:53:25 -08:00
neil
87b92f8332
Bandwidth test: fix repeat tests failing, add a duration (1-60 s)
The server kept streaming (and holding the one-test lock) after the browser stopped reading, so the
next test got a 409. The server now ends the stream at the chosen duration, the browser reads to the
end, and a new test ends any earlier stream instead of being refused. Errors show in the cell.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 20:29:42 -07:00
neil
169a6154ab
Resources card: CPU, Memory and Network on top, More/Less for Swap, Disk and a bandwidth test
The test downloads random bytes from the VPS for 5 s and shows the fastest half second. It's refused
while players are connected, since it saturates the uplink.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 20:22:28 -07:00
neil
a963dc1bf4
Network as a regular resources cell next to Disk, with two stacked bar-sized graphs
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 10:41:58 -07:00
neil
3ae03160e8
Show the server's public IP with click to copy, and VPS network graphs
Cards show the VPS's public IP (PUBLIC_IP, else the default route's source address) instead of the
page's hostname; clicking the address copies it. VPS resources gets stacked download/upload graphs
of the last 5 minutes, kept server side.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-26 10:32:31 -07:00
neil
cb9a6d1970
Game server manager: web UI for Valheim and Project Zomboid servers
FastAPI + vanilla JS app run as a Docker container behind Caddy (HTTPS by
IP). install.sh installs or updates it on a server in one command, with
preflight checks and Docker setup; deploy.sh pushes a local checkout to a
server over SSH and runs install.sh there.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-16 20:03:16 -07:00