Oops, wrapped the wrong list...

This commit is contained in:
niten 2023-01-06 16:11:56 -08:00
parent 463f5dd9d8
commit 6130473dfb

View File

@ -74,15 +74,15 @@ in {
Type = "simple"; Type = "simple";
PIDFile = "/run/objectifier.pid"; PIDFile = "/run/objectifier.pid";
ExecStart = let ExecStart = let
bindClause = bindClause = concatStringsSep " "
map (addr: "--bind ${addr}:${cfg.port}") cfg.listen-addresses; (map (addr: "--bind ${addr}:${cfg.port}") cfg.listen-addresses);
in (concatStringsSep " " [ in (concatStringsSep " " [
"gunicorn" "gunicorn"
bindClause bindClause
"--workers ${cfg.workers}" "--workers ${cfg.workers}"
"-k uvicorn.workers.UvicornWorker" "-k uvicorn.workers.UvicornWorker"
"objectifier:app"
"--pid /run/objectifier.pid" "--pid /run/objectifier.pid"
"objectifier:app"
]); ]);
}; };
}; };