mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix cluster server path being duplicated by proxy (#5550)
This commit is contained in:
parent
1260fac281
commit
6a218c37d2
@ -141,17 +141,13 @@ export class ContextHandler {
|
||||
protected async newApiTarget(timeout: number): Promise<httpProxy.ServerOptions> {
|
||||
await this.ensureServer();
|
||||
|
||||
const ca = this.dependencies.authProxyCa;
|
||||
const clusterPath = this.clusterUrl.path !== "/" ? this.clusterUrl.path : "";
|
||||
const apiPrefix = `${this.kubeAuthProxy.apiPrefix}${clusterPath}`;
|
||||
|
||||
return {
|
||||
target: {
|
||||
protocol: "https:",
|
||||
host: "127.0.0.1",
|
||||
port: this.kubeAuthProxy.port,
|
||||
path: apiPrefix,
|
||||
ca,
|
||||
path: this.kubeAuthProxy.apiPrefix,
|
||||
ca: this.dependencies.authProxyCa,
|
||||
},
|
||||
changeOrigin: true,
|
||||
timeout,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user