Updated socket connection code to support docker. Also updated dockerfile and entrypoint to support new file structure.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start the backend server
|
||||
node /src/backend/server.cjs &
|
||||
node /app/src/backend/server.cjs &
|
||||
|
||||
# Start nginx in the foreground
|
||||
exec nginx -g 'daemon off;'
|
||||
@@ -7,6 +7,7 @@ const io = socketIo(server, {
|
||||
cors: {
|
||||
origin: "*",
|
||||
methods: ["GET", "POST"],
|
||||
transports: ["polling", "websocket"],
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user