diff --git a/config/ai.nix b/config/ai.nix index 7b4656e..038c892 100644 --- a/config/ai.nix +++ b/config/ai.nix @@ -6,7 +6,7 @@ (import ./networking.nix { hostname = "mindforge"; ip_address = "192.168.100.45"; - open_ports = [ ]; + open_ports = [ 80 443 ]; inherit lib; }) ]; @@ -34,14 +34,27 @@ }; }; - services.open-webui = { - enable = true; - host = "0.0.0.0"; - openFirewall = true; - }; - services.ollama = { enable = true; acceleration = "cuda"; }; + + # NGINX Reverse Proxy Setup + services.open-webui.enable = true; + services.nginx = { + enable = true; + virtualHosts = { + # Jellyfin + "mindforge.randomctf.local" = { + extraConfig = '' + access_log /var/log/nginx/access.mindforge.log; + ''; + + locations."/".extraConfig = '' + proxy_buffering off; + proxy_pass http://localhost:8080/; + ''; + }; + }; + }; }