fix(llm): add ws for openwebui and unstable
This commit is contained in:
parent
c5542b5ca1
commit
a03de99682
@ -4,6 +4,7 @@ let
|
|||||||
backendDomain = "ollama.giugl.io";
|
backendDomain = "ollama.giugl.io";
|
||||||
frontendDomain = "llm.giugl.io";
|
frontendDomain = "llm.giugl.io";
|
||||||
ollamaPkg = pkgs.unstablePkgs.ollama-cuda;
|
ollamaPkg = pkgs.unstablePkgs.ollama-cuda;
|
||||||
|
uiPkg = pkgs.unstablePkgs.open-webui;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment = {
|
environment = {
|
||||||
@ -23,7 +24,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
open-webui.enable = true;
|
open-webui = {
|
||||||
|
enable = true;
|
||||||
|
package = uiPkg;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
architect.vhost.${backendDomain} = {
|
architect.vhost.${backendDomain} = {
|
||||||
@ -51,6 +55,7 @@ in
|
|||||||
port = config.services.open-webui.port;
|
port = config.services.open-webui.port;
|
||||||
allowLan = true;
|
allowLan = true;
|
||||||
allowWAN = true;
|
allowWAN = true;
|
||||||
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user