mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
nixos/open-webui: quote services.open-webui.host
in start script
This commit is contained in:
parent
04aaf2c3cd
commit
4b9de23515
2 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,7 @@ in
|
|||
} // cfg.environment;
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${lib.getExe cfg.package} serve --host ${cfg.host} --port ${toString cfg.port}";
|
||||
ExecStart = "${lib.getExe cfg.package} serve --host \"${cfg.host}\" --port ${toString cfg.port}";
|
||||
EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile;
|
||||
WorkingDirectory = cfg.stateDir;
|
||||
StateDirectory = "open-webui";
|
||||
|
|
|
@ -15,6 +15,7 @@ in
|
|||
{
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
host = "";
|
||||
environment = {
|
||||
# Requires network connection
|
||||
RAG_EMBEDDING_MODEL = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue