From fa38277468e3917981389ad891d4cf5cb19099c3 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Thu, 24 Sep 2026 15:49:56 +0000 Subject: [PATCH] Export apiHostId as the stable host contract for dependents --- startos/utils.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/startos/utils.ts b/startos/utils.ts index d6ca153..2470984 100644 --- a/startos/utils.ts +++ b/startos/utils.ts @@ -3,6 +3,11 @@ // Port the proxy listens on inside the container (upstream default). export const apiPort = 8787 +// Host id of the binding the proxy's API and Status Page are served from. +// Dependents import this along with apiPort (the stable contract) rather than +// hardcoding either — mirroring the open-webui KNOWN_BACKENDS pattern. +export const apiHostId = 'main' + // Upstream's PPQ_DATA_DIR inside the container: where it persists the API key // saved from the status page. -export const dataDir = '/data' +export const dataDir = '/data' \ No newline at end of file