Skip to content

v0.2.0 — first feature release

Choose a tag to compare

@ayozetr ayozetr released this 21 May 23:38
· 59 commits to main since this release

First feature release of the BeamMP fork. v0.1.x got the panel functionally equivalent to the AC original on the BeamMP side; v0.2.0 is the wave of operator-facing convenience features built on top of that base — visual catalogues for maps and mods, automated lifecycle (map rotation, restart scheduler, MOTD loop), live moderation surface (chat viewer, broadcast templates), and dashboard polish (active-map screenshot card, BeamMP-Server update notifier, BeamMP-specific KPI widgets). One CSRF fix and a second documented deploy layout round it out.

Added

  • Visual map catalogue at /maps — grid of cards with the official BeamNG.drive screenshots (from documentation.beamng.com/official_content/levels/images/, normalised to 800×450 q82), click-to-modal, activate-with-restart-prompt. The Map field in Server Config is now a read-only display + "Choose in Maps" button.
  • Visual mods catalogue at /mods — unified .car-grid of thumbnail cards, kind-based filter chips, click-to-modal, per-card preview image extracted on demand from inside the .zip.
  • Live chat viewer on the Players page + PanelBridge v2 Lua plugin. Plugin records every onChatMessage into a 200-line ring-buffered chat.json; panel polls every 5 s with ?since=<ts> for incremental refresh.
  • Broadcast button + templates modal in Players + MOTD loop in Settings. Five starter templates and an optional re-broadcast every N minutes for server rules / Discord links. Reuses /api/broadcast + PanelBridge command pipeline.
  • Automatic map rotation in Maps — persisted list + interval, in-process timer activates the next map every N minutes and restarts BeamMP-Server.
  • Cron-simple restart scheduler in Settings — fixed time + weekday picker, persisted in panel_settings. Audit-logged each scheduled restart.
  • BeamMP-Server update notifier banner on the Dashboard — queries GitHub releases once per 6 h, compares against local BeamMP-Server --version, shows a per-version-dismissable banner when a newer server is out.
  • BeamMP-specific KPI widgets on the Dashboard — second row with active map (rendered as a screenshot card background under a darkening gradient overlay), joins in last 24 h, mods on disk, binary version. Polled at /api/dashboard/extra every 30 s.
  • ServerConfig.toml export / import in Settings — one-click download (AuthKey redacted) and upload through the existing _validateTomlUpdates pipeline. Cross-host migration + disaster-recovery workflow with the same per-key validation + audit logging.
  • Quick map switcher dropdown in the topbar — current map name + popover with vanilla and custom maps, click-to-activate with confirm-restart. Gated on serverConfig permission.

Fixed

  • checkOrigin honours X-Forwarded-Host when sitting behind a trusted reverse proxy (TRUST_PROXY=1). The original implementation compared against req.headers.host alone, which rejected every cookie-authenticated POST/PUT/DELETE/PATCH when the upstream proxy rewrote Host (Caddy default reverse_proxy, nginx without proxy_set_header Host, cloudflared with httpHostHeader: localhost). Every same-origin rejection now logs peer + headers.

Docs

  • docs/install-beammp-split-layout.md + docs/install-panel.md — alternative deploy layout validated end-to-end by a real prod deploy on a shared host that already runs assetto-server-panel. The original install-ubuntu.md (dedicated beammp user under /srv/beammp/) stays as the greenfield default.
  • .env.example TRUST_PROXY block expanded to describe the new CSRF / X-Forwarded-Host gate.
  • maps.attribution i18n string (EN + ES) rewritten now that thumbnails are real screenshots.

Polish

  • Service worker CACHE_NAME bumped bp-panel-v4 → bp-panel-v5 so PWA installs drop the v4 bundle on next visit.
  • Broadcast button relocated from the player-list card header into the live-chat card header.

Full changelog: CHANGELOG.md · Diff: v0.1.1...v0.2.0