Delete GET /smoke, make GET read-only, listen on loopback and WireGuard only
GET /smoke ran docker run --gpus all and started the resident worker outside the gate, reachable by any page or LAN host while the household's switch was off. Its only callers were scripts/smoke-vili.mjs and the Eve Smoke button, so the route, the script, the button and the advertised endpoints go. refreshBackendStatus lost its includeKimodoHelp GPU branch and every service docker start: a GET now only asks. The worker starts only inside a job that holds the slot. --host takes the addresses to listen on, one server each (Raven: 127.0.0.1,10.77.0.4); a wildcard refuses to start. Callers are the tray and health (loopback) and WireGuard peers (Starfire, services). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a3052ddf63
commit
3fa19d7590
1 changed files with 0 additions and 36 deletions
|
|
@ -1,36 +0,0 @@
|
|||
#!/usr/bin/env node
|
||||
const baseUrl = process.env.VILI_URL || process.argv[2] || "http://10.77.0.4:8824";
|
||||
|
||||
async function get(path) {
|
||||
const response = await fetch(`${baseUrl}${path}`);
|
||||
const text = await response.text();
|
||||
let body;
|
||||
try {
|
||||
body = JSON.parse(text);
|
||||
} catch {
|
||||
body = text;
|
||||
}
|
||||
if (!response.ok) {
|
||||
throw new Error(`${path} returned ${response.status}: ${text.slice(0, 500)}`);
|
||||
}
|
||||
return body;
|
||||
}
|
||||
|
||||
const health = await get("/health");
|
||||
const providers = await get("/eve/deck/providers");
|
||||
const smoke = await get("/smoke");
|
||||
|
||||
console.log(JSON.stringify({
|
||||
ok: true,
|
||||
baseUrl,
|
||||
health: {
|
||||
service: health.service,
|
||||
providerId: health.providerId,
|
||||
backend: health.state?.backend,
|
||||
},
|
||||
providers,
|
||||
smoke: {
|
||||
ok: smoke.ok,
|
||||
backend: smoke.backendStatus,
|
||||
},
|
||||
}, null, 2));
|
||||
Loading…
Reference in a new issue