mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-13 13:49:19 +08:00
Removing hardcoded https
This commit is contained in:
parent
ff1c6fdec3
commit
9c5a9cdc1a
@ -9,11 +9,7 @@ var twilio = require("twilio")(twillioAccountSID, twillioAuthToken);
|
||||
var express = require("express");
|
||||
var app = express();
|
||||
const fs = require('fs');
|
||||
var http = require("https").createServer({
|
||||
key: fs.readFileSync('/Users/khushjammu/certs/privkey.pem'),
|
||||
cert: fs.readFileSync('/Users/khushjammu/certs/cert.pem')
|
||||
}, app);
|
||||
// var http = require("http").createServer(app);
|
||||
var http = require("http").createServer(app);
|
||||
var io = require("socket.io")(http);
|
||||
var path = require("path");
|
||||
var public = path.join(__dirname, "public");
|
||||
@ -145,7 +141,7 @@ io.on("connection", function (socket) {
|
||||
});
|
||||
|
||||
// Listen for Heroku port, otherwise just use 3000
|
||||
var port = process.env.PORT || 443;
|
||||
var port = process.env.PORT || 3000;
|
||||
http.listen(port, function () {
|
||||
console.log("http://localhost:" + port);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user