nixos/open-webui: quote services.open-webui.host in start script

This commit is contained in:
shivaraj-bh 2025-01-31 15:14:51 +05:30
parent 04aaf2c3cd
commit 4b9de23515
2 changed files with 2 additions and 1 deletions

View file

@ -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";

View file

@ -15,6 +15,7 @@ in
{
services.open-webui = {
enable = true;
host = "";
environment = {
# Requires network connection
RAG_EMBEDDING_MODEL = "";