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>
This commit is contained in:
commit
cb9a6d1970
20 changed files with 3801 additions and 0 deletions
48
CLAUDE.md
Normal file
48
CLAUDE.md
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Game server manager
|
||||
|
||||
## Game art
|
||||
|
||||
Server cards show a portrait poster and the new-server game picker shows a wide banner. Both are official
|
||||
Steam library art, saved into the app (not hotlinked, so the page doesn't depend on Steam and viewers'
|
||||
browsers don't contact Valve).
|
||||
|
||||
Files live in `app/static/art/`:
|
||||
|
||||
- `<game>-poster.jpg`: Steam `library_600x900.jpg` (served as 300x450), shown on server cards
|
||||
- `<game>-header.jpg`: Steam `header.jpg` (460x215), shown in the game picker
|
||||
|
||||
`<game>` is the game's key in `GAMES` in `app/app.py` (`valheim`, `zomboid`).
|
||||
|
||||
To add art for a new game:
|
||||
|
||||
1. Find its Steam app ID: the number in its store URL, `store.steampowered.com/app/<id>/`.
|
||||
Use the game's app ID, not the dedicated server's (Project Zomboid is 108600, its server is 380870).
|
||||
2. Download both images:
|
||||
```sh
|
||||
id=<steam app id>; game=<GAMES key>
|
||||
curl -fo app/static/art/$game-poster.jpg https://cdn.cloudflare.steamstatic.com/steam/apps/$id/library_600x900.jpg
|
||||
curl -fo app/static/art/$game-header.jpg https://cdn.cloudflare.steamstatic.com/steam/apps/$id/header.jpg
|
||||
```
|
||||
`library_600x900_2x.jpg` is a sharper poster if ever needed (about 2-4x the size).
|
||||
3. Add the key to `GAME_ART` in `app/static/app.js`. Games not listed there simply show no image.
|
||||
4. Deploy with `HOST=root@<server> ./deploy.sh` (the Dockerfile copies all of `static/`).
|
||||
|
||||
Current art: Valheim (892970), Project Zomboid (108600). Steam swaps library art for major updates
|
||||
(Valheim's poster is the "Bog Witch" update art as of 2026-10), so re-download if it looks dated.
|
||||
|
||||
## Project Zomboid mod presets
|
||||
|
||||
The new-server wizard's Build 42 mod checklist comes from `PRESET_MODS` in `app/zomboid.py`. Each entry
|
||||
lists its Workshop items and Mod IDs, including required dependencies, in load order.
|
||||
|
||||
Don't trust Mod IDs from guides or Workshop descriptions (several don't list them, and B41/B42 versions
|
||||
differ). Verify by downloading into a running PZ container and reading `list-mods`:
|
||||
|
||||
```sh
|
||||
docker exec <pz container> bash -c '"$STEAMCMDDIR/steamcmd.sh" +force_install_dir "$STEAMAPPDIR" +login anonymous +workshop_download_item 108600 <id> +quit'
|
||||
docker exec <pz container> list-mods # JSON: each item's mod ids, "require" lists and errors
|
||||
```
|
||||
|
||||
Required Workshop items for a mod are listed under "Required items" on its Workshop page. Last verified
|
||||
on build 42.21.0, 2026-10-16. Rain Wash (B41 only), "Occupation Based Starting Gear" and "Vehicle Edge
|
||||
Slide Fix" (no matching Workshop item found) were left out at the user's request.
|
||||
Loading…
Add table
Add a link
Reference in a new issue