aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2021-05-06 08:28:36 -0500
committerAnthony Wang2021-05-06 08:28:36 -0500
commit4837d25e8bc750a1f4ef36583fe3cb71ee23fbcb (patch)
treea62d2fd92c85ea385b14d026f34e97aa0c142dcb
parent10ba8f8ecdf11acaf177dd310d12c53798852efc (diff)
Remove HTTPS for now
-rw-r--r--back/src/server.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/back/src/server.ts b/back/src/server.ts
index 3fe879f..1f58e82 100644
--- a/back/src/server.ts
+++ b/back/src/server.ts
@@ -3,9 +3,9 @@ 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({cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}});
-const base = process.env.SSL_KEY && process.env.SSL_CERT && process.env.SSL_CA ? https.createServer({
+/*const base = process.env.SSL_KEY && process.env.SSL_CERT && process.env.SSL_CA ? https.createServer({
"key": fs.readFileSync(process.env.SSL_KEY),
"cert": fs.readFileSync(process.env.SSL_CERT),
"ca": fs.readFileSync(process.env.SSL_CA)
@@ -14,4 +14,4 @@ base.listen(+process.env.PORT!, () => {
console.log(`Listening on port ${process.env.PORT}`);
});
-export default new Server(base, {cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}});
+export default new Server(base, {cors: {origin: process.env.ORIGIN, methods: ['GET', 'POST']}});*