feat(reverse-proxy): collect fleet routes

This commit is contained in:
2026-08-17 14:32:08 -04:00
parent 680cdb75eb
commit c50e996851
4 changed files with 54 additions and 3 deletions

View File

@@ -64,9 +64,18 @@ let
websockets
;
};
collectFleetRoutes =
hosts:
lib.concatMapAttrs (
hostName: host:
lib.mapAttrs' (
routeName: route: lib.nameValuePair "${hostName}-${routeName}" route
) host.config.modules.reverse-proxy.routes
) hosts;
in
{
inherit mkRouteOptions routeFields;
inherit collectFleetRoutes mkRouteOptions routeFields;
routeType = lib.types.submodule (
{ name, ... }: