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}"; + }; }; }