Spaces:
Paused
Paused
Commit History
-
feat(web): add view-only mode and a Hugging Face Space deployment
Hosting the dashboard publicly means every visitor shares one game, and control commands are unauthenticated POSTs. --view-only rejects /api/cmd/* with 403 and the page disables the shared controls, while per-viewer view options (view mode, time of day, grid, camera follow) keep working. The Dockerfile builds the binary, bakes the root checkpoint into the image and serves on port 7860 with --view-only, sized for the free CPU tier (LAYA_THREADS=2). The README gains the Space config header and the deploy steps. The event stream sends X-Accel-Buffering: no so proxies pass it through unbuffered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>634fb2d