nixos-config/modules/services/server/ollama.nix

29 lines
585 B
Nix
Raw Normal View History

2024-04-06 08:39:22 +02:00
{ config, pkgs, ... }:
let
ollamahostname = "llm.kabtop.de";
in
{
2024-04-14 21:04:25 +02:00
virtualisation.oci-containers.containers."open-webui" = {
autoStart = true;
image = "ghcr.io/open-webui/open-webui:ollama";
volumes = [
"/var/lib/open-webui:/app/backend/data"
];
hostname = "open-webui";
ports = [ "8081:8080" ];
};
2024-04-06 08:39:22 +02:00
2024-04-14 21:04:25 +02:00
services = {
nginx = {
virtualHosts = {
${ollamahostname} = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:8081";
};
};
2024-04-06 08:39:22 +02:00
};
2024-04-14 21:04:25 +02:00
};
2024-04-06 08:39:22 +02:00
}