From 4c28aed2a2bdb5e4f73ced7049b9a9258c42a032 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 4 Dec 2024 14:44:48 +0530 Subject: [PATCH] feat: Added nextjs-ollama-llm-ui --- nixos/mirai/services.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/mirai/services.nix b/nixos/mirai/services.nix index 73151f1c..adc4265f 100644 --- a/nixos/mirai/services.nix +++ b/nixos/mirai/services.nix @@ -164,6 +164,11 @@ OLLAMA_ORIGINS = "*"; }; }; + nextjs-ollama-llm-ui = { + enable = true; + port = 5096; + ollamaUrl = "https://llama.darksailor.dev/api/ollama"; + }; llama-cpp = { enable = false; host = "127.0.0.1"; @@ -246,7 +251,7 @@ uri /api/authz/forward-auth copy_headers Remote-User Remote-Groups Remote-Email Remote-Name } - reverse_proxy localhost:3000 + reverse_proxy localhost:5096 } ''; virtualHosts."auth.darksailor.dev".extraConfig = ''