aboutsummaryrefslogtreecommitdiff
path: root/modules/open-webui/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/open-webui/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/open-webui/default.nix b/modules/open-webui/default.nix
new file mode 100644
index 0000000..b8c0938
--- /dev/null
+++ b/modules/open-webui/default.nix
@@ -0,0 +1,24 @@
+{
+ services = {
+ open-webui = {
+ enable = false;
+ port = 3030;
+ environment = {
+ ANONYMIZED_TELEMETRY = "False";
+ DO_NOT_TRACK = "True";
+ SCARF_NO_ANALYTICS = "True";
+ WEBUI_AUTH = "False";
+ OLLAMA_API_BASE_URL = "http://localhost:11434";
+ };
+ };
+
+ nginx.virtualHosts = {
+ "chat.internal" = {
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:3030";
+ proxyWebsockets = true;
+ };
+ };
+ };
+ };
+}
Directive (EU) 2019/790, Article 4(3); all rights regarding Text and Data Mining (TDM) are reserved.