Changes to connection system to support docker

This commit is contained in:
Karmaa
2025-03-12 20:07:39 -05:00
parent 615c8d4ceb
commit 994de92451
3 changed files with 8 additions and 9 deletions

View File

@@ -4,9 +4,9 @@ const SSHClient = require("ssh2").Client;
const server = http.createServer();
const io = socketIo(server, {
path: "/ssh.io/socket.io",
path: "/ssh.io/socket.io", // Corrected path for socket.io
cors: {
origin: "*",
origin: "*", // Temporarily set to '*' to allow all origins. Change to specific URLs if needed.
methods: ["GET", "POST"],
credentials: true
},