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