Support the browser gateways on the remote nodes

This commit is contained in:
Owen
2026-06-13 14:08:03 -07:00
parent 39f40e5160
commit 0fb5ace9c7
5 changed files with 22 additions and 12 deletions

View File

@@ -17,13 +17,18 @@ export async function traefikConfigProvider(
// Get the current exit node name from config
const currentExitNodeId = await getCurrentExitNodeId();
const maintenancePort = config.getRawConfig().server.next_port;
const maintenanceHost = config.getRawConfig().server.internal_hostname;
const browserGatewayUiUrl = `http://${maintenanceHost}:${maintenancePort}`;
const traefikConfig = await getTraefikConfig(
currentExitNodeId,
config.getRawConfig().traefik.site_types,
build == "oss", // filter out the namespace domains in open source
build != "oss", // generate the login pages on the cloud and and enterprise,
config.getRawConfig().traefik.allow_raw_resources,
build != "oss" // generate browser gateway resources on cloud and enterprise
build != "oss", // generate maintenance page on cloud and enterprise
browserGatewayUiUrl
);
if (traefikConfig?.http?.middlewares) {