summaryrefslogtreecommitdiff
path: root/Omni/Cloud/Web.nix
diff options
context:
space:
mode:
authorBen Sima (aider) <ben@bsima.me>2025-06-04 11:50:05 -0400
committerBen Sima <ben@bsima.me>2025-06-13 11:19:37 -0400
commit495db3caa6101514c576d9bac18206cd88011871 (patch)
tree38d255be41fddc0ecd2f5cd995958c02fc23f47b /Omni/Cloud/Web.nix
parent9ad72ecd8657449873162114c3d04008fc7adbd3 (diff)
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.
Diffstat (limited to 'Omni/Cloud/Web.nix')
-rw-r--r--Omni/Cloud/Web.nix12
1 files changed, 12 insertions, 0 deletions
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"
];
};
}