- Enable Ollama API by setting `ENABLE_OLLAMA_API` to true. - Disable OpenAI API by setting `ENABLE_OPENAI_API` to false. This improves control over API usage and ensures proper configuration.
19 lines
414 B
Nix
19 lines
414 B
Nix
{ ... }:
|
|
{
|
|
services.open-webui = {
|
|
enable = true;
|
|
port = 8080;
|
|
host = "127.0.0.1";
|
|
environment = {
|
|
ANONYMIZED_TELEMETRY = "False";
|
|
DO_NOT_TRACK = "True";
|
|
SCARF_NO_ANALYTICS = "True";
|
|
ENABLE_OLLAMA_API = "True";
|
|
OLLAMA_API_BASE_URL = "http://m4.local:11434";
|
|
ENABLE_OPENAI_API = "False";
|
|
# Disable authentication
|
|
WEBUI_AUTH = "False";
|
|
};
|
|
};
|
|
}
|