Commit Graph

10 Commits

Author SHA1 Message Date
Fredrik Johansson
e146126f86 Api endpoint added /api/latency-targets
All checks were successful
Docker / build-and-push (push) Successful in 1m48s
2026-07-26 18:48:39 +02:00
Fredrik Johansson
3adf06e4e1 Add favicon
All checks were successful
Docker / build-and-push (push) Successful in 1m44s
Pulse-line mark in the status-yellow accent, on both the status page and /admin. Wires up static file serving and fixes the Dockerfile to actually ship the public/ dir into the runtime image.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-19 19:50:36 +02:00
Fredrik Johansson
957be073ab Add .dockerignore to shrink the build context sent to the daemon
All checks were successful
Docker / build-and-push (push) Successful in 1m59s
node_modules/.git/dist were being sent on every build with no
.dockerignore at all — same class of fix as goonk's recent deploy-speed
pass. Verified by building with the new file in place (adventure and
new spot-checked with a full container run + health check; the rest
share the same multi-stage Dockerfile pattern).
2026-07-16 18:48:35 +02:00
Fredrik Johansson
4174b8d59c docker issue
All checks were successful
Docker / build-and-push (push) Successful in 1m52s
2026-07-12 23:23:53 +02:00
Fredrik Johansson
0711a7f7ad Add pull_policy: always, matching wisp/keep's convention
All checks were successful
Docker / build-and-push (push) Successful in 1m51s
Missed when the admin-panel work copied wisp's docker-compose.yml
pattern. Without it, `docker compose up -d` won't re-pull a new
:latest image if a container with the old one is already running —
the host's bulk deploy script (docker compose up -d per project, no
explicit pull step) would silently leave this project stale on every
redeploy.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-12 20:46:32 +02:00
Fredrik Johansson
edfa12b8e9 Fix: .env was never actually loaded for local dev
All checks were successful
Docker / build-and-push (push) Successful in 2m8s
README said cp .env.example .env then npm run dev, but nothing ever
read the file into process.env — no dotenv, no --env-file. This
predates the admin UI work; just surfaced by actually trying to run
it. Fixed with Node's native --env-file flag on both dev and start
(no new dependency). Doesn't affect Docker, which gets its config
from docker-compose's environment: block directly, bypassing npm
scripts entirely (CMD calls node dist/index.js directly).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-10 15:49:56 +02:00
Fredrik Johansson
b83d7aec01 Add admin UI: per-host visibility overrides and manual targets
NPM stays the source of truth for which domains exist; this adds an
optional enrichment layer on top of the existing NPM_INCLUDE_PATTERNS
filtering, gated behind ADMIN_PASSWORD (disabled entirely if unset).

- Force-show/force-hide any NPM-discovered host regardless of what
  the include pattern would otherwise decide
- Per-host display name and check path overrides
- Manually add targets that aren't proxied through NPM at all
- Every override falls back to the NPM-derived default when unset —
  a host with no override behaves exactly as before this existed

Host overrides and manual targets live in SQLite (better-sqlite3,
WAL mode) and are re-read on every 60s check tick, so admin changes
take effect within one cycle with no restart. NPM host discovery
keeps its original 10-minute cadence — only the local override reads
happen every tick.

The core merge (NPM hosts + overrides + manual targets -> final
check list) is a pure function in targets.ts, kept separate from the
checker's I/O for testability. Verified end-to-end against a local
mock NPM server (auth, force-show/hide, rename, custom check path,
manual targets, reset-to-default all propagate correctly) and against
the actual Docker build/runtime (better-sqlite3's native addon builds
and loads correctly in the Alpine image).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-10 15:40:57 +02:00
explewd
e9d132cd02 Add MIT license
All checks were successful
Docker / build-and-push (push) Successful in 36s
2026-07-09 19:55:08 +02:00
Fredrik Johansson
ec8bd88935 ci: trigger initial build
All checks were successful
Docker / build-and-push (push) Successful in 36s
2026-07-07 21:56:30 +02:00
Fredrik Johansson
a300ea1b43 Initial commit — status checker service
All checks were successful
Docker / build-and-push (push) Successful in 35s
Polls Nginx Proxy Manager API for proxy hosts matching configurable
domain patterns (NPM_INCLUDE_PATTERNS), HTTP-checks each every 60s,
serves results as JSON (/api/status) and a terminal-aesthetic HTML
page (/). Port 3035.

NPM connection and domain filter patterns are fully configurable via
environment variables — see README and .env.example.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-07 21:44:49 +02:00