Skip to content

Commit

Permalink
Allow overriding Swagger API port (F1bonacc1#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindgopall authored Apr 5, 2023
1 parent 63ad787 commit 178cd95
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ in
Which runs process-compose with the declared config.
'';
};
port = mkOption {
type = types.int;
default = 8080;
description = ''
Port to serve process-compose's Swagger API on.
'';
};
};
};
};
Expand All @@ -68,7 +75,7 @@ in
inherit name;
runtimeInputs = [ config.process-compose.package ];
text = ''
process-compose -f ${toYAMLFile processComposeConfig} "$@"
process-compose -p ${builtins.toString config.process-compose.port} -f ${toYAMLFile processComposeConfig} "$@"
'';
}
)
Expand Down

0 comments on commit 178cd95

Please sign in to comment.