diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-06-04 21:49:05 +0200 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-06-05 08:05:18 +0200 |
commit | 5664bb78991bffa5f86ad951ebbe95dd414b7c32 (patch) | |
tree | 1de0a1642d144e6f2d37a933ddb639b7ecbd3822 /nixos/modules | |
parent | a8670536e5d3c6ee9561372f0f94bb1d788fb351 (diff) |
nixos/open-webui: add example in options
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/misc/open-webui.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/open-webui.nix b/nixos/modules/services/misc/open-webui.nix index fad81fb1ee2a9..636e4b7e66f48 100644 --- a/nixos/modules/services/misc/open-webui.nix +++ b/nixos/modules/services/misc/open-webui.nix @@ -18,12 +18,14 @@ in stateDir = lib.mkOption { type = types.path; default = "/var/lib/open-webui"; + example = "/home/foo"; description = "State directory of Open-WebUI."; }; host = lib.mkOption { type = types.str; default = "localhost"; + example = "0.0.0.0"; description = '' The host address which the Open-WebUI server HTTP interface listens to. ''; @@ -32,6 +34,7 @@ in port = lib.mkOption { type = types.port; default = 8080; + example = 11111; description = '' Which port the Open-WebUI server listens to. ''; @@ -42,7 +45,7 @@ in default = { }; example = '' { - OLLAMA_API_BASE_URL = "http://localhost:11434"; + OLLAMA_API_BASE_URL = "http://127.0.0.1:11434"; # Disable authentication WEBUI_AUTH = "False"; } |