From 14a80888a4a7ce9558e4b602f1b1027aa8c596d8 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 15 May 2025 21:49:34 -0500 Subject: [PATCH] adding open-webui --- modules/ollama.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/ollama.nix b/modules/ollama.nix index cd83959..e7e2b28 100644 --- a/modules/ollama.nix +++ b/modules/ollama.nix @@ -1,6 +1,8 @@ { config, lib, pkgs, unstable, ... }: -with lib; +let + dn = "chatai.tfcconnection.org"; +in with lib; { services = { ollama = { @@ -26,5 +28,10 @@ with lib; # ]; # }; }; + nginx.virtualHosts.${dn} = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://localhost:${toString config.services.open-webui.port}"; + }; }; }