diff --git a/objectifier-module.nix b/objectifier-module.nix index 6db85c6..5df95ca 100644 --- a/objectifier-module.nix +++ b/objectifier-module.nix @@ -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" ]); }; };