mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-15 17:36:37 +00:00
Remote nodes working
This commit is contained in:
@@ -213,11 +213,6 @@ export async function getTraefikConfig(
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// make sure we have at least one resource
|
|
||||||
if (resourcesMap.size === 0) {
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
const config_output: any = {
|
const config_output: any = {
|
||||||
http: {
|
http: {
|
||||||
middlewares: {
|
middlewares: {
|
||||||
|
|||||||
@@ -273,35 +273,6 @@ hybridRouter.get(
|
|||||||
false // Dont include login pages
|
false // Dont include login pages
|
||||||
);
|
);
|
||||||
|
|
||||||
const badgerMiddlewareName = "badger";
|
|
||||||
if (traefikConfig?.http?.middlewares) {
|
|
||||||
traefikConfig.http.middlewares[badgerMiddlewareName] = {
|
|
||||||
plugin: {
|
|
||||||
[badgerMiddlewareName]: {
|
|
||||||
apiBaseUrl: new URL(
|
|
||||||
"/api/v1",
|
|
||||||
`http://${
|
|
||||||
config.getRawConfig().server
|
|
||||||
.internal_hostname
|
|
||||||
}:${config.getRawConfig().server.internal_port}`
|
|
||||||
).href,
|
|
||||||
userSessionCookieName:
|
|
||||||
config.getRawConfig().server
|
|
||||||
.session_cookie_name,
|
|
||||||
|
|
||||||
// deprecated
|
|
||||||
accessTokenQueryParam:
|
|
||||||
config.getRawConfig().server
|
|
||||||
.resource_access_token_param,
|
|
||||||
|
|
||||||
resourceSessionRequestParam:
|
|
||||||
config.getRawConfig().server
|
|
||||||
.resource_session_request_param
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
return response(res, {
|
return response(res, {
|
||||||
data: traefikConfig,
|
data: traefikConfig,
|
||||||
success: true,
|
success: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user