aboutsummaryrefslogtreecommitdiff
path: root/modules/open-webui/default.nix
blob: b8c0938478d7a5d56160a2c81a499ebe1541f66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.