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";
PIDFile = "/run/objectifier.pid";
ExecStart = let
bindClause =
map (addr: "--bind ${addr}:${cfg.port}") cfg.listen-addresses;
bindClause = concatStringsSep " "
(map (addr: "--bind ${addr}:${cfg.port}") cfg.listen-addresses);
in (concatStringsSep " " [
"gunicorn"
bindClause
"--workers ${cfg.workers}"
"-k uvicorn.workers.UvicornWorker"
"objectifier:app"
"--pid /run/objectifier.pid"
"objectifier:app"
]);
};
};