From 495db3caa6101514c576d9bac18206cd88011871 Mon Sep 17 00:00:00 2001 From: "Ben Sima (aider)" Date: Wed, 4 Jun 2025 11:50:05 -0400 Subject: Add Open Web UI AI Chat Container and Nginx Proxy Introduce a new container definition for the Open Web UI AI Chat service in `OpenWebui.nix`, specifying its Docker image, volume, and environment variables. This change includes the addition of a new port in `Ports.nix` to facilitate communication with the service. Furthermore, configure Nginx to serve the AI Chat application by adding a new virtual host entry in `Web.nix`, ensuring SSL is enforced and websocket support is enabled. This setup allows for a seamless integration of the AI Chat service into the existing infrastructure, improving accessibility and security. --- Omni/Cloud/Web.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Omni/Cloud/Web.nix') diff --git a/Omni/Cloud/Web.nix b/Omni/Cloud/Web.nix index 57dfb65..8f616eb 100644 --- a/Omni/Cloud/Web.nix +++ b/Omni/Cloud/Web.nix @@ -170,6 +170,17 @@ in { }; }; }; + + "aichat.${rootDomain}" = { + forceSSL = true; + useACMEHost = rootDomain; + locations = { + "/" = { + proxyPass = "http://127.0.0.1:${toString ports.open-webui-aichat}"; + proxyWebsockets = true; + }; + }; + }; }; }; }; @@ -190,6 +201,7 @@ in { # xmpp stuff "upload" "conference" + "aichat" ]; }; } -- cgit v1.2.3