mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix node shell not loading due to Host/certificate mismatch (#7147)
* Fix node shell not loading Signed-off-by: Sebastian Malton <sebastian@malton.name> * Remove unnecessary cast Signed-off-by: Sebastian Malton <sebastian@malton.name> --------- Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f678bf4b2e
commit
949580e7d4
@ -11,7 +11,7 @@ const apiBaseHostHeaderInjectable = getInjectable({
|
|||||||
instantiate: (di) => {
|
instantiate: (di) => {
|
||||||
const lensProxyPort = di.inject(lensProxyPortInjectable);
|
const lensProxyPort = di.inject(lensProxyPortInjectable);
|
||||||
|
|
||||||
return `localhost:${lensProxyPort.get()}`;
|
return `lens.app:${lensProxyPort.get()}`;
|
||||||
},
|
},
|
||||||
injectionToken: apiBaseHostHeaderInjectionToken,
|
injectionToken: apiBaseHostHeaderInjectionToken,
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import type { SelfSignedCert } from "selfsigned";
|
|
||||||
import { lensProxyCertificateChannel } from "../../common/certificate/lens-proxy-certificate-channel";
|
import { lensProxyCertificateChannel } from "../../common/certificate/lens-proxy-certificate-channel";
|
||||||
import { getRequestChannelListenerInjectable } from "../utils/channel/channel-listeners/listener-tokens";
|
import { getRequestChannelListenerInjectable } from "../utils/channel/channel-listeners/listener-tokens";
|
||||||
import lensProxyCertificateInjectable from "../../common/certificate/lens-proxy-certificate.injectable";
|
import lensProxyCertificateInjectable from "../../common/certificate/lens-proxy-certificate.injectable";
|
||||||
@ -10,7 +9,7 @@ import lensProxyCertificateInjectable from "../../common/certificate/lens-proxy-
|
|||||||
const lensProxyCertificateRequestHandlerInjectable = getRequestChannelListenerInjectable({
|
const lensProxyCertificateRequestHandlerInjectable = getRequestChannelListenerInjectable({
|
||||||
channel: lensProxyCertificateChannel,
|
channel: lensProxyCertificateChannel,
|
||||||
handler: (di) => {
|
handler: (di) => {
|
||||||
const lensProxyCertificate = di.inject(lensProxyCertificateInjectable).get() as SelfSignedCert;
|
const lensProxyCertificate = di.inject(lensProxyCertificateInjectable).get();
|
||||||
|
|
||||||
return () => ({
|
return () => ({
|
||||||
cert: lensProxyCertificate.cert,
|
cert: lensProxyCertificate.cert,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user