refactor(reverse-proxy): use route registry
This commit is contained in:
@@ -32,6 +32,11 @@ in
|
||||
{
|
||||
inherit definitions;
|
||||
|
||||
join = registry: host: entry:
|
||||
filterAttrs (_name: value: value != null) (
|
||||
mapAttrs (_name: hostEntriesByName: (hostEntriesByName.${host} or { }).${entry} or null) registry
|
||||
);
|
||||
|
||||
module = {
|
||||
options.registry = mapAttrs (_name: registry: registryOption registry) definitions;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user