From 594d1918fdf7343b9ba0d9b34450907a958b4912 Mon Sep 17 00:00:00 2001 From: maheshBawa Date: Fri, 20 Nov 2026 14:43:23 +0530 Subject: [PATCH] fix(compose): pass ARTEX_LLM_PRIVATE_ENDPOINTS to the artex container The model-list allow-list (#390) is read from the environment, but docker-compose.yml never forwarded it, so a Docker install could not list models from a local Ollama at host.docker.internal:11434. Empty by default, so the strict public-only policy is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) --- .env.example | 2 ++ docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.env.example b/.env.example index c7b4007..033e179 100644 --- a/.env.example +++ b/.env.example @@ -21,6 +21,8 @@ ARTEX_LLM_PROVIDER= ARTEX_LLM_MODEL= ARTEX_LLM_BASE_URL= ARTEX_LLM_PROXY= +# Allow the UI model list to reach a local Ollama, e.g. host.docker.internal:11434 +ARTEX_LLM_PRIVATE_ENDPOINTS= # Untrusted-output boundary. Frames every tool output between nonce-tagged markers so # the model treats it as data, not instructions. On by default (unset or empty = on); diff --git a/docker-compose.yml b/docker-compose.yml index 00e28c5..13d894b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,6 +38,8 @@ services: ARTEX_LLM_MODEL: ${ARTEX_LLM_MODEL:-} ARTEX_LLM_BASE_URL: ${ARTEX_LLM_BASE_URL:-} ARTEX_LLM_PROXY: ${ARTEX_LLM_PROXY:-} + # Exact host:port list the model-list fetch may reach on private addresses (e.g. host.docker.internal:11434 for Ollama). + ARTEX_LLM_PRIVATE_ENDPOINTS: ${ARTEX_LLM_PRIVATE_ENDPOINTS:-} ARTEX_JWT_KEY_DIR: /app/keys # Optional: key for secrets at rest; empty = keys/secret.key (generated at first start). ARTEX_SECRET_KEY: ${ARTEX_SECRET_KEY:-}