diff options
Diffstat (limited to 'back/src/server.ts')
-rw-r--r-- | back/src/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/back/src/server.ts b/back/src/server.ts index c73162a..ee74aaf 100644 --- a/back/src/server.ts +++ b/back/src/server.ts @@ -3,7 +3,7 @@ import http from 'http'; import https from 'https'; import {Server} from 'socket.io'; -export default new Server({cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}}); +export default new Server(Number(process.env.PORT!), {cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}}); /*const base = process.env.SSL_KEY && process.env.SSL_CERT && process.env.SSL_CA ? https.createServer({ "key": fs.readFileSync(process.env.SSL_KEY), |