This commit is contained in:
mjallen18
2025-03-12 19:17:19 -05:00
parent 0edf43c283
commit 1479ff496a
2 changed files with 18 additions and 17 deletions

View File

@@ -10,13 +10,13 @@
home = "/media/nas/ssd/nix-app-data/ollama"; home = "/media/nas/ssd/nix-app-data/ollama";
}; };
services.llama-cpp = { # services.llama-cpp = {
enable = true; # enable = true;
port = 10400; # port = 10400;
host = "0.0.0.0"; # host = "0.0.0.0";
openFirewall = true; # openFirewall = true;
model = "/media/nas/ssd/nix-app-data/llama-cpp/models/functionary-small-v3.2-GGUF"; # model = "/media/nas/ssd/nix-app-data/llama-cpp/models/functionary-small-v3.2-GGUF";
}; # };
services.open-webui = { services.open-webui = {
enable = true; enable = true;
@@ -31,13 +31,14 @@
OPENID_REDIRECT_URI = "https://chat.mjallen.dev/oauth/oidc/callback"; OPENID_REDIRECT_URI = "https://chat.mjallen.dev/oauth/oidc/callback";
ENABLE_OAUTH_SIGNUP = "False"; ENABLE_OAUTH_SIGNUP = "False";
OAUTH_MERGE_ACCOUNTS_BY_EMAIL = "True"; OAUTH_MERGE_ACCOUNTS_BY_EMAIL = "True";
ENABLE_SIGNUP = "True"; ENABLE_SIGNUP = "False";
ENABLE_LOGIN_FORM = "True"; ENABLE_LOGIN_FORM = "False";
ANONYMIZED_TELEMETRY = "False"; ANONYMIZED_TELEMETRY = "False";
DO_NOT_TRACK = "True"; DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True"; SCARF_NO_ANALYTICS = "True";
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434"; OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
LOCAL_FILES_ONLY = "False"; LOCAL_FILES_ONLY = "False";
WEBUI_AUTH = "False";
}; };
}; };
} }

View File

@@ -226,14 +226,14 @@ in
priority = 10; priority = 10;
tls.certResolver = "letsencrypt"; tls.certResolver = "letsencrypt";
}; };
open-webui = { # open-webui = {
entryPoints = [ "websecure" ]; # entryPoints = [ "websecure" ];
rule = "Host(`chat.${domain}`)"; # rule = "Host(`chat.${domain}`)";
service = "chat"; # service = "chat";
# middlewares = [ "authentik" ]; # # middlewares = [ "authentik" ];
priority = 10; # priority = 10;
tls.certResolver = "letsencrypt"; # tls.certResolver = "letsencrypt";
}; # };
cache = { cache = {
entryPoints = [ "websecure" ]; entryPoints = [ "websecure" ];
rule = "Host(`cache.${domain}`)"; rule = "Host(`cache.${domain}`)";