mirror of
https://github.com/adrlau/nix-dotfiles.git
synced 2025-01-22 08:24:46 +01:00
openwebui fixes
This commit is contained in:
parent
9e0e69c80d
commit
f7f492adcc
@ -1,27 +0,0 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
openWebuiImage = "ghcr.io/open-webui/open-webui:main";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
virtualisation.oci-containers = {
|
|
||||||
backend = {
|
|
||||||
image = openWebuiImage;
|
|
||||||
cmd = [ "-d" "--network=host" "-v" "open-webui:/app/backend/data" "--name" "open-webui" "--restart" "always" ];
|
|
||||||
volumes = [ "open-webui:/app/backend/data" ];
|
|
||||||
environment = {
|
|
||||||
OLLAMA_BASE_URL = "http://127.0.0.1:11434";
|
|
||||||
};
|
|
||||||
restart = "always";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx.virtualHosts."chat.${config.networking.hostName}.${config.networking.domain}" = {
|
|
||||||
forceSSL = true;
|
|
||||||
#useACMEHost = config.networking.domain; #not sure if this will work, unless
|
|
||||||
locations."/" = {
|
|
||||||
proxyWebsockets = true;
|
|
||||||
proxyPass = "http://${config.services.ollama.listenAddress}";
|
|
||||||
};
|
|
||||||
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
|
||||||
};
|
|
||||||
}
|
|
@ -2,6 +2,8 @@
|
|||||||
{
|
{
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.unstable.open-webui
|
pkgs.unstable.open-webui
|
||||||
|
pkgs.gvisor
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user