We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c9fd7a0 + 3a00f3b commit b49d20cCopy full SHA for b49d20c
cyclops-ui/src/components/pages/Terminal.tsx
@@ -43,7 +43,7 @@ const ExecTerminal = ({
43
fitAddon.current?.fit();
44
45
socket.current = new WebSocket(
46
- `ws://localhost:8888/exec/${namespace}/${podName}/${containerName}`,
+ `/api/exec/${namespace}/${podName}/${containerName}`,
47
);
48
49
socket.current.onopen = () => {
cyclops-ui/src/setupProxy.js
@@ -6,6 +6,7 @@ module.exports = function (app) {
6
createProxyMiddleware({
7
target: process.env.REACT_APP_CYCLOPS_CTRL_HOST,
8
changeOrigin: true,
9
+ ws: true,
10
pathRewrite: {
11
"^/api": "",
12
},
0 commit comments