JaneHQ
JaneHQ — admin console + alerting server for the Jane monitoring agent.
Runs two listeners in one process:
- the msgpack ingest server (default :25900) for agent reports, and
- the Kemal web console (default :80) with an admin login + dashboard.
Constants
ASSET_VERSION = Time.utc.to_unix.to_s
Cache-busting token appended to /public asset URLs. Kemal's StaticFileHandler only sends ETag/Last-Modified, so browsers happily serve a stale app.css after a rebuild; this changes on every server start.
LOGO_SVG = ({{ read_file("/tmp/tmp.iaKodE/src/src/../public/logo.svg") }}).sub(/\A.*?<svg/m, "<svg")
The topbar logo, embedded at compile time and inlined into the page by
layout.ecr rather than linked as an : inline, its bow and "Jane" paths
(fill:currentColor) take the topbar's text colour, while the "HQ" keeps the
brand red. The file's XML prolog and Inkscape comment are dropped — they are
not valid inside an HTML document.
VERSION = "0.1.0"
Class methods
run
Source