feat(llm): openwebui

This commit is contained in:
Giulio De Pasquale 2025-03-10 12:30:55 +00:00
parent d7a3a3bcf3
commit 1542d67202

View File

@ -10,7 +10,8 @@ in
systemPackages = [ ollamaPkg ];
};
services.ollama = {
services = {
ollama = {
enable = true;
package = ollamaPkg;
@ -22,6 +23,9 @@ in
};
};
open-webui.enable = true;
};
architect.vhost.${backendDomain} = {
dnsInterfaces = [ "tailscale" "lan" ];
@ -38,4 +42,15 @@ in
'';
};
};
architect.vhost.${frontendDomain} = {
dnsInterfaces = [ "tailscale" "lan" ];
locations."/" = {
host = config.services.open-webui.host;
port = config.services.open-webui.port;
allowLan = true;
allowWAN = true;
};
};
}