Updated conection process to work hopfully with docker.

This commit is contained in:
Karmaa
2025-03-05 16:15:51 -06:00
parent 713d43fc52
commit e800064f05
6 changed files with 52 additions and 45 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/sh
# Start the backend server
node /app/src/backend/server.cjs &
# Start nginx in the foreground
exec nginx -g 'daemon off;'

View File

@@ -5,9 +5,9 @@ const SSHClient = require("ssh2").Client;
const server = http.createServer();
const io = socketIo(server, {
cors: {
origin: "*", // Allow all origins
methods: ["*"], // Allow all methods
allowedHeaders: ["*"], // Allow all headers
origin: "*",
methods: ["GET", "POST"],
credentials: true
},
allowEIO3: true
});