Oops, wrapped the wrong list...
This commit is contained in:
parent
463f5dd9d8
commit
6130473dfb
@ -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"
|
||||
]);
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user