Status page and uptime monitor (uptime-kuma)
Status page and uptime monitor on a Self Host Wizard box: the uptime-kuma piece, served at status.<apps domain>, forward sign-in, memory limit 270 MB.
At a glance
| Field | Value |
|---|---|
| Address | https://status.<apps domain> |
| Sign-in | forward: Caddy asks Authelia before the app sees a request (forward auth) |
| Memory limit | 270 MB (ram_mb: measured peak × 1.3) |
| Database | none shared: it keeps its own data in THX_DATA |
| Needs | authelia, lldap |
| Needed by | nothing |
| Containers | uptime-kuma |
Image: uptime-kuma | louislam/uptime-kuma:2.5.12@sha256:8e4b6bef96417ec98a35dc103c99cc64fc229a01e584e56d95d9004d2003c02a |
| Only these groups get in | admins |
| Open without sign-in | /status/* /api/status-page/* /api/badge/* /api/push/* /api/entry-page /assets/* /upload/* /icon.svg /icon.svg.* /icon.png /icon-192x192.png /icon-512x512.png /favicon.ico /apple-touch-icon.png /manifest.json /serviceWorker.js /robots.txt |
| Set-up script after start | scripts/post-up.sh, daily |
| Licence (from the README) | MIT |
| Upstream (from the README) | https://github.com/louislam/uptime-kuma |
Turn it on
thx enable adds uptime-kuma and everything it needs to the box's state; thx apply then installs it. Apps are applied only once site_domain is set.
sudo thx enable uptime-kuma
sudo thx apply
Engineering notes (pieces/uptime-kuma/README.md)
Upstream: Uptime Kuma 2.5.12, https://github.com/louislam/uptime-kuma, MIT.
Image: louislam/uptime-kuma:2.5.12@sha256:8e4b6bef96417ec98a35dc103c99cc64fc229a01e584e56d95d9004d2003c02a
(multi-arch index; docker buildx imagetools inspect lists linux/amd64, linux/arm64, linux/arm/v7).
Served at https://status.<apps_domain>, 127.0.0.1:18090 → container 3001. SQLite in THX_DATA
(/app/data), set by UPTIME_KUMA_DB_TYPE=sqlite, so the first-run "pick a database" page never
shows; embedded MariaDB off.
Login: forward auth is the only gate
auth = "forward", LLDAP group admins only ([forward] groups). Kuma has no SSO and no REST
admin API, so post-up.sh pipes kuma-setup.js into node inside the container and uses the
UI's own socket.io events:
- first-run setup: user
admin, passwordTHX_SECRET_ADMIN_PASSWORD(never used by people); disableAuth = true: whoever passes Authelia lands in the dashboard as that admin;- monitors for the box's own services, added by name when missing: Authelia
(
http://authelia:9091/api/health), LLDAP (tcplldap:3890), Stalwart SMTP (tcpstalwart:25) and IMAPS (tcpstalwart:993), over the piece networkthx-uptime-kuma(apply joins authelia and lldap to it asdepends, and stalwart to every piece network); - public status page
/status/thxlisting them; saved only when its monitor list differs.
It prints changed only when it changed something; the test runs it twice and the second run
prints nothing.
Consequence of (2): **socket.io is the admin API, so /socket.io/ must never be public.** It is
not in public_paths; the test proves anonymous and non-admin requests to it are refused.
Public paths (exact list, [forward] public_paths)
| Path | Why |
|---|---|
/status/* | status page HTML (SPA does not open socket.io on these pages) |
/api/status-page/* | status page data, heartbeats, manifest, incident history, badge |
/api/badge/* | per-monitor badges (Kuma serves them only for monitors on a public page) |
/api/push/* | push monitors: external jobs report in here, by token |
/api/entry-page | the SPA asks it on load |
/assets/*, /upload/* | JS/CSS bundles; status-page logos |
/icon.svg, /icon.svg.*, /icon.png, /icon-192x192.png, /icon-512x512.png, /favicon.ico, /apple-touch-icon.png, /manifest.json, /serviceWorker.js, /robots.txt | static files |
Everything else — /, /dashboard, /settings, /socket.io/, /metrics, /setup-database-info
— goes through forward auth. Verified: every src/href in the /status/thx HTML answers 200
without login.
Measured (dev PC, amd64, test.sh)
Peak 206 MiB (max of three runs: 198, 206, 172) over setup, 4 monitors checking, status page and dashboard requests →
ram_mb = 270 (206 × 1.3, rounded up). CPU: one node process; checks every 60 s.
Test
HEAVY_CLASS=check ~/.cache/run-heavy.sh 4G pieces/uptime-kuma/test.sh — throwaway LLDAP +
Authelia + Caddy + mail catcher (as stalwart); proves post_up idempotence, public status page +
API + assets without login, seeded monitors reporting UP, /, /dashboard, /socket.io/,
/metrics → 302 to Authelia, alice (not admin) → 403, boss (admins) → dashboard and socket.io
autoLogin.
Known gaps
- Which monitors to seed is fixed to the core services: the piece cannot see which other pieces
are enabled. A
THX_PIECESvariable (enabled pieces with host + port) would let it add one HTTP monitor per app. - Notifications (mail on down) are not configured yet; Kuma's SMTP notification would use
THX_SMTP_*. - No per-company status pages; one page for the box. Kuma has no team concept, so
org-*groups map to nothing; admins only.