Add admin diagnostics: env-var config check and log tail
Deploy with Docker Compose / deploy (push) Successful in 45s

Two admin-only REST endpoints and a Diagnostics tab in the admin panel:

- GET /admin/config reports which known environment variables are set,
  what each is for, and the value only for non-credential vars. Secrets
  are never returned, only their presence.
- GET /admin/logs returns the tail of backend/logs/go.log (Gin traffic
  plus application lines), bounded to 256 KiB and 500 lines so the read
  is constant-size however large the file has grown.

tailLogFile is split out from the handler and tested for the line cap,
the partial-first-line rule, and the empty/missing cases.

Co-Authored-By: Claude Code <[email protected]>
This commit is contained in:
2026-09-22 23:02:57 +01:00
co-authored by Claude Code
parent 49909037db
commit 8bd93cbd8e
5 changed files with 414 additions and 0 deletions
+2
View File
@@ -18,6 +18,7 @@ import CreateBookmark from "./CreateBookmark.vue";
import CreatePlace from "./CreatePlace.vue";
import ManageUsers from "./ManageUsers.vue";
import ManageRadio from "./ManageRadio.vue";
import Diagnostics from "./Diagnostics.vue";
const auth = useAuthStore();
@@ -31,6 +32,7 @@ const sections = [
{ id: "place", label: "Place / Thing To Do", component: CreatePlace },
{ id: "users", label: "Manage Users", component: ManageUsers },
{ id: "radio", label: "Manage Radio", component: ManageRadio },
{ id: "diagnostics", label: "Diagnostics", component: Diagnostics },
];
const active = ref("place");