Add admin diagnostics: env-var config check and log tail
Deploy with Docker Compose / deploy (push) Successful in 45s
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user