From 7dc63cc7ac7f857b44739d514513f37edb176d4a Mon Sep 17 00:00:00 2001 From: Katarina Sheremet Date: Thu, 27 Aug 2026 17:12:47 +0000 Subject: [PATCH] Fix paperless urls --- hosts/dia/nixos.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/dia/nixos.nix b/hosts/dia/nixos.nix index bd4e68c..b1aef75 100644 --- a/hosts/dia/nixos.nix +++ b/hosts/dia/nixos.nix @@ -28,9 +28,9 @@ image = "icereed/paperless-gpt:latest"; environmentFiles = [ "/home/katarina/src/paperless/paperless-api-token.env" ]; environment = { - PAPERLESS_BASE_URL = "http://0.0.0.0:${toString config.services.paperless.port}"; + PAPERLESS_BASE_URL = "http://127.0.0.1:${toString config.services.paperless.port}"; LLM_PROVIDER = "ollama"; - OLLAMA_URL = "http://10.26.140.44:11434"; + OLLAMA_HOST = "http://10.26.140.44:11434"; LLM_MODEL = "llama3.2:3b"; }; extraOptions = [ "--network=host" ]; @@ -63,7 +63,7 @@ # Native Paperless-ngx AI features PAPERLESS_AI_ENABLED = true; PAPERLESS_AI_LLM_BACKEND = "ollama"; - PAPERLESS_AI_LLM_URL = "http://10.26.140.44:11434"; + PAPERLESS_AI_LLM_ENDPOINT = "http://10.26.140.44:11434"; PAPERLESS_AI_LLM_MODEL = "llama3.2:3b"; }; };