Files
infrastructure/llm-server/llm/ansible/roles/open_webui/defaults/main.yml
T
spektr 521ec5cdf3 Merge origin/main (PR #17 GNAI-021 Theme/Favicon + ai_backup, PR #18 llama.cpp-Pin)
Konflikte geloest: open_webui uebernimmt die origin-Branding-Struktur
(files/theme + files/favicon, open_webui_theme_dir/favicon_mounts), meine
Deep-Research-Pipe/-Tasks und der /app/build/favicon.png-Mount bleiben erhalten;
files/branding-Duplikate entfernt. Link-Check OK (292 Links), beide Playbooks syntax-ok.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-17 07:14:44 +01:00

164 lines
8.3 KiB
YAML

---
# OpenWebUI application role (GNAI-001 milestone 6, first user path).
# Runs as the Production workload account inside the Production engine
# network, so it reaches llama.cpp via the network alias without any host
# port on the engine. The app itself is published on the LAN address only,
# and the host firewall (gnmon_firewall) restricts it to NPM (10.0.0.10).
#
# Image: immutable digest, never a moving tag (GNAI-010 section 3.1).
# v0.13.3 (2026-11-08), index digest resolved 2026-11-11.
open_webui_image: ghcr.io/open-webui/open-webui
open_webui_image_ref: ghcr.io/open-webui/open-webui@sha256:46b59158e6558eeb980bc828e0f1b30238ad24d82ed84d5e5eda1dab2a082f14
open_webui_image_tag: v0.13.3
# Reuses the Production environment identity and network (GNAI-008 7.4).
open_webui_user: gnai-production
open_webui_uid: 980
open_webui_home: /var/lib/ghostnet-ai/production
open_webui_quadlet_dir: /etc/containers/systemd/users/980
open_webui_unit_prefix: gnai-production-openwebui
open_webui_network_name: gnai-production-llama
# The engine network is Internal=true (no egress). OpenWebUI additionally
# joins this egress network so it can reach the public OIDC discovery
# (auth.ghostnet.selfhost.eu) while llama.cpp stays reachable via the
# internal network only.
open_webui_egress_network_name: gnai-production-egress
# Engine model exposed in the chat UI. The model is synced into the OpenWebUI
# DB and granted public read access (access_grant principal user "*"), so
# every authenticated OIDC user sees it (GNAI-005: anwendungsbezogene Rechte).
# The id stays stable (grants, API callers); the display name is cosmetic.
open_webui_engine_model_id: swift-1.5-qwen3.8-27b-q6k
open_webui_engine_model_name: "Qwen 3.8 27B (Swift 1.5)"
# Default model preselected in the model picker of new chats. v0.13 expects
# ui.default_models as a COMMA-SEPARATED STRING (Chat.svelte calls .split on
# it) — a JSON list crashes the page with "default_models.split is not a
# function". DB config wins over the DEFAULT_MODELS env var.
open_webui_default_models: "{{ open_webui_engine_model_id }}"
# Workspace tool (API agents): SearXNG wrapper seeded into the OpenWebUI DB
# with a public read grant. API callers pass this id in `tool_ids`.
open_webui_web_search_tool_id: gnai-web-search
# Deep-Research pipe (GNAI-022, M6-R1 / Roadmap Phase 1): iterative
# plan->search->fetch->synthesize loop exposed as a pipe "model" in the
# model selector. Seeded idempotently into webui.db; content pinned by
# sha256 (recompute after every edit of files/gnai-deep-research-pipe.py:
# sha256sum files/gnai-deep-research-pipe.py).
open_webui_deep_research_function_id: gnai-deep-research
open_webui_deep_research_display_name: "Deep Research"
open_webui_deep_research_pipe_sha256: "45cb3be0029937fdde7d70018d63191101fba8151dcf55e5566c464584b54c9b"
open_webui_deep_research_valves:
ENGINE_BASE_URL: "{{ open_webui_engine_base_url }}"
ENGINE_MODEL_ID: "{{ open_webui_engine_model_id }}"
SEARXNG_URL: "http://searxng:8080"
MAX_ITERATIONS: 5
QUERIES_PER_ROUND: 4
RESULTS_PER_QUERY: 6
PAGES_PER_ROUND: 5
FETCH_TIMEOUT_S: 12.0
FETCH_MAX_BYTES: 200000
PAGE_TEXT_CHARS: 5000
MAX_TOKENS: 4096
TEMPERATURE: 0.3
# Engine endpoint inside the shared Production network. llama.cpp itself
# has no auth; OpenWebUI just needs a non-empty key value, supplied via a
# Podman secret (never in git).
open_webui_engine_base_url: http://llama-cpp:8080/v1
open_webui_engine_api_key_secret: openwebui-engine-api-key
open_webui_webui_secret_key_secret: openwebui-webui-secret-key
# App ingress: LAN address, port 8081, firewall-limited to NPM (CT-103).
open_webui_host_addr: 10.0.0.90
open_webui_host_port: 8081
open_webui_container_port: 8080
# Persistent app data (SQLite DB, uploads, cache).
open_webui_data_dir: /var/lib/ghostnet-ai/production/openwebui-data
# GNMON theme (GNAI-021): Catppuccin Mocha wie das Monitoring-Dashboard.
# Wird als einzelne read-only-Datei über den Image-Placeholder
# /app/backend/open_webui/static/custom.css gemountet (index.html lädt
# /static/custom.css auf jeder Seite). Beim Container-Start kopiert OpenWebUI
# sein static/-Verzeichnis zwar neu (config.py), aber eine read-only
# Einzeldatei kann weder unlinkt noch überschrieben werden — die Fehler werden
# upstream ge-swallowt. Das Theme überlebt Image-Updates, weil der Mount
# host-seitig im Quadlet liegt und die Datei aus diesem Repo kommt.
open_webui_theme_dir: /var/lib/ghostnet-ai/production/openwebui-theme
open_webui_theme_src: theme/gnai-catppuccin-mocha.css
open_webui_theme_file: custom.css
open_webui_theme_container_path: /app/backend/open_webui/static/custom.css
# Favicon (GNAI-021): the ORIGINAL ghost favicon of the monitoring site
# (byte-identical PNGs from src/Ghostnet.Dashboard/wwwroot/), same
# update-persistent mechanism as the theme: read-only single-file mounts over
# the image's /app/backend/open_webui/static/* favicon files (app.html
# references all of them). Badge variants were tried and rejected by the
# operator 2026-11-14 — both sites use the plain ghost.
open_webui_favicon_dir: /var/lib/ghostnet-ai/production/openwebui-favicon
open_webui_favicon_mounts:
- host_file: favicon.png
container_path: /app/backend/open_webui/static/favicon.png
- host_file: favicon-96x96.png
container_path: /app/backend/open_webui/static/favicon-96x96.png
- host_file: favicon.svg
container_path: /app/backend/open_webui/static/favicon.svg
- host_file: favicon.ico
container_path: /app/backend/open_webui/static/favicon.ico
- host_file: apple-touch-icon.png
container_path: /app/backend/open_webui/static/apple-touch-icon.png
# OIDC phase (M6 public route via NPM + Keycloak). Disabled for the
# internal phase; enable together with the Keycloak client
# `gnai-openwebui` and the NPM proxy host chat.ghostnet.selfhost.eu.
# The client secret is created as a Podman secret by the operator (the
# Keycloak-generated value never enters git):
# runuser -u gnai-production -- podman secret create \
# openwebui-oidc-client-secret -
open_webui_oidc_enabled: false
open_webui_oidc_client_id: gnai-openwebui
open_webui_oidc_client_secret_secret: openwebui-oidc-client-secret
# Public client with PKCE needs no secret; set true only for a confidential client.
open_webui_oidc_use_client_secret: false
open_webui_oidc_provider_url: https://auth.ghostnet.selfhost.eu/realms/Ghost.net/.well-known/openid-configuration
open_webui_public_url: https://chat.ghostnet.selfhost.eu
# Internal phase: local auth with first-user-is-admin. The public OIDC
# phase (M6 route) switches ENABLE_OAUTH_* on and disables local signup.
open_webui_env:
WEBUI_AUTH: "True"
OPENAI_API_BASE_URL: "{{ open_webui_engine_base_url }}"
DATA_DIR: /app/backend/data
ENABLE_SIGNUP: "True"
DEFAULT_USER_ROLE: user
ENABLE_OAUTH_SIGNUP: "False"
ENABLE_LOGIN_FORM: "True"
# Web search (GNAI-020): Native/Agentic Mode (default tool-calling mode
# since v0.10) exposes search_web/fetch_url as builtin tools; no RAG, no
# embedding model needed. Gates in v0.13.3 (utils/tools.py): global
# ENABLE_WEB_SEARCH (default False — without it the tools are never
# injected), model capability meta.capabilities.web_search (set by the
# model-sync task), per-request features.web_search, user permission
# features.web_search (default True for role user). ENABLE_RAG_WEB_SEARCH
# existed only in legacy versions and is gone in v0.13.3.
ENABLE_WEB_SEARCH: "True"
WEB_SEARCH_ENGINE: searxng
# No Ollama on this host: without this the UI calls /ollama/api/version on
# every model-list open and surfaces HTTP 500 "could not connect to Ollama".
# NOTE: the persisted DB config (ollama.enable) wins over this env var, so
# the DB sync task below also sets ollama.enable=false.
ENABLE_OLLAMA_API: "False"
DEFAULT_MODELS: "{{ open_webui_engine_model_id }}"
# v0.13.3 strips any query string from the URL and sends q/format=json
# itself (retrieval/web/searxng.py), so the <query> placeholder form is
# correct.
SEARXNG_QUERY_URL: http://searxng:8080/search?q=<query>
WEB_SEARCH_RESULT_COUNT: "8"
WEB_SEARCH_CONCURRENT_REQUESTS: "4"
# fetch_url reads whole pages into the model context; cap the size.
WEB_FETCH_MAX_CONTENT_LENGTH: "100000"
# Real browser UA for the web loader / fetch_url (bot detection of large
# publishers otherwise answers 403/empty).
USER_AGENT: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"