fix(route-connection-handler): Forward non-TLS connections on HttpProxy ports to fix ACME HTTP-01 challenge handling

This commit is contained in:
2025-05-19 19:59:22 +00:00
parent 85bd448858
commit 42fe1e5d15
17 changed files with 1020 additions and 530 deletions

View File

@@ -63,11 +63,24 @@ export class HttpProxyBridge {
*/
private routeToHttpProxyConfig(route: IRouteConfig): any {
// Convert route to HttpProxy domain config format
let domain = '*';
if (route.match.domains) {
if (Array.isArray(route.match.domains)) {
domain = route.match.domains[0] || '*';
} else {
domain = route.match.domains;
}
}
return {
domain: route.match.domains?.[0] || '*',
domain,
target: route.action.target,
tls: route.action.tls,
security: route.action.security
security: route.action.security,
match: {
...route.match,
domains: domain // Ensure domains is always set for HttpProxy
}
};
}