- FileFromFS with http.FS(embedFS) returned 301 redirects due to
Gin setting c.Request.URL.Path to a relative path for http.FileServer
- Replace with direct fs.ReadFile + Gin c.Data, determining content
type via mime.TypeByExtension
- Supports all asset types (JS, CSS, SVG, HTML) and SPA fallback
- New backend/embed package embeds frontend dist/ via //go:embed
- Go binary serves frontend from embedded FS (no external files needed)
- Dev mode uses placeholder dir (dev.txt) so Go compiles; Vite handles
frontend in dev mode
- Makefile copies frontend/dist/ to backend/embed/dist/ during build
- Removed FRONTEND_DIR env var and filesystem serving fallback
- Removed frontend path from Health API response and Status page frontend
section (only Served boolean remains)
- Removed frontendDir from Handler struct/constructor (unused)
Backend:
- New /api/server/health endpoint returning server, paths, disk,
mods, steamcmd, and frontend status
- Health endpoint checks directory existence/writability, disk usage,
server binary, and frontend dist availability
Frontend:
- New Status page (route /status) with sections for Server, SteamCMD,
Mods, Frontend, Directories (with exists/writable badges), and
Disk Usage (with size formatting and used-percent coloring)
- Paths are clickable to copy and use start-truncation (ellipsis on
the left) with native hover tooltip
- Health API client integration with 10s auto-refresh
Misc:
- Update .gitignore and Makefile, minor Layout nav addition
- RenderModlistHTML: generates compatible preset HTML from a modlist
- GET /api/modlists/:id/export: returns downloadable .html file
- Export button on ModlistEditor page
- Skips local mods (no workshop ID), includes only Steam workshop mods
- .goreleaser.yaml: cross-compile linux/windows, Docker image, Gitea releases
- .gitea/workflows/ci.yml: verify build on every push/PR
- .gitea/workflows/release.yml: goreleaser + Docker on tag push
- Dockerfile: switch to debian:bookworm-slim, install steamcmd from Valve
- Dockerfile.goreleaser: minimal image used by goreleaser dockers
- docker-compose.yml: parameterize SERVERS_DIR via env var