mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +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;
|
} // cfg.environment;
|
||||||
|
|
||||||
serviceConfig = {
|
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;
|
EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile;
|
||||||
WorkingDirectory = cfg.stateDir;
|
WorkingDirectory = cfg.stateDir;
|
||||||
StateDirectory = "open-webui";
|
StateDirectory = "open-webui";
|
||||||
|
|
|
@ -15,6 +15,7 @@ in
|
||||||
{
|
{
|
||||||
services.open-webui = {
|
services.open-webui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
host = "";
|
||||||
environment = {
|
environment = {
|
||||||
# Requires network connection
|
# Requires network connection
|
||||||
RAG_EMBEDDING_MODEL = "";
|
RAG_EMBEDDING_MODEL = "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue