Updated dockerfile for new file structure
This commit is contained in:
1 parent
95c2994b3c
commit
98a45e9161
2 files changed
+6
-5
No files matched your search
+4
-3
@@ -68,10 +68,11 @@ export function NewTerminal({ hostConfig }) {
|
||||
terminal.write("\r\n*** Connecting to backend ***\r\n");
|
||||
|
||||
// Create socket connection
|
||||
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||
const wsUrl = `${protocol}//${window.location.host}/ws/`;
|
||||
const isSecure = window.location.protocol === "https:";
|
||||
const wsProtocol = isSecure ? "https" : "http";
|
||||
const ioUrl = `${wsProtocol}://${window.location.host}/io/`;
|
||||
|
||||
const socket = io(wsUrl);
|
||||
const socket = io(ioUrl);
|
||||
|
||||
// Emit hostConfig to start SSH connection
|
||||
socket.on("connect", () => {
|
||||
|
||||
Reference in new issue
Block a user