Restrict the AI tab to HOST1 — the only node with the GPU, Ollama and the index

This commit is contained in:
Gmer4Lfe
2026-08-04 17:25:40 -04:00
parent 0cf208b80a
commit b1fdaced9f
4 changed files with 42 additions and 11 deletions
+5 -3
View File
@@ -9,9 +9,11 @@
// api/ai.php, receives a token, and polls until the job reaches done or error. That keeps
// the api layer on one response convention; see api/ai.php for why SSE was declined.
//
// The tab is only reachable when AI_ENABLED is true. Varaverk.page omits it from the tab
// list and rejects it server-side, and api/ai.php refuses ask independently — hiding a link
// is not access control.
// The tab is only reachable on HOST1, and only when AI_ENABLED is true. Varaverk.page omits
// it from the tab list and rejects it server-side, and api/ai.php refuses every action on
// the same two conditions independently — hiding a link is not access control. HOST1 is the
// node with the GPU, the Ollama process and the index; include/ai.php reads only the local
// {HOST}_OLLAMA_URL, so the tab could not function anywhere else regardless.
//
// DESIGN PRINCIPLES
// The banner leads with offload, not with size.