From 14513e894a2e56695cf05eab744523e29f5f113f Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Mon, 1 Sep 2025 10:31:19 -0400 Subject: [PATCH] Update open-webui --- machines/cj/configuration.nix | 15 ++++++++++++--- machines/cj/open-webui.nix | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 machines/cj/open-webui.nix diff --git a/machines/cj/configuration.nix b/machines/cj/configuration.nix index 6985e7f..f462250 100644 --- a/machines/cj/configuration.nix +++ b/machines/cj/configuration.nix @@ -148,6 +148,7 @@ }; in { home-assistant = import ./home-assistant.nix ips; + open-webui = import ./open-webui.nix ips; pihole = import ./pihole.nix ips; unifi = import ./unifi.nix ips; vaultwarden = import ./vaultwarden.nix ips; @@ -175,11 +176,19 @@ # This is an ollama frontend. Formerly called ollama-webui open-webui = { - enable = true; - environment.OLLAMA_API_BASE_URL = "http://192.168.88.18:11434"; + # We now use docker instead + enable = false; + environment = { + ANONYMIZED_TELEMETRY = "False"; + DO_NOT_TRACK = "True"; + SCARF_NO_ANALYTICS = "True"; + OLLAMA_API_BASE_URL = "http://192.168.88.18:11434"; + OLLAMA_BASE_URL = "http://192.168.88.18:11434"; + DATA_DIR = "/serverdata/open-webui/data"; + }; host = "cj.monster-squeaker.ts.net"; port = 8687; - stateDir = "/serverdata/open-webui"; + stateDir = "/serverdata/open-webui/state"; }; pipewire = { diff --git a/machines/cj/open-webui.nix b/machines/cj/open-webui.nix new file mode 100644 index 0000000..256a7da --- /dev/null +++ b/machines/cj/open-webui.nix @@ -0,0 +1,19 @@ +{ serverIP, serverIP6 } : { + image = "ghcr.io/open-webui/open-webui:0.6.25"; + ports = [ + "8687:8080" + ]; + environment = { + TZ = "America/New_York"; + + WEBUI_URL = "http://cj.monster-squeaker.ts.net:8687"; + ANONYMIZED_TELEMETRY = "False"; + DO_NOT_TRACK = "True"; + SCARF_NO_ANALYTICS = "True"; + USE_OLLAMA = "False"; + OLLAMA_BASE_URL = "http://192.168.88.18:11434"; + }; + volumes = [ + "/serverdata/open-webui/data:/app/backend/data" + ]; +}