Use http for development

This commit is contained in:
Robin Linus 2015-12-23 13:58:46 +01:00
parent 22be7c5cb9
commit f1ad168e40

View file

@ -7,14 +7,14 @@ var express = require('express');
var app = express(); var app = express();
app.use(express.static(__dirname + '/public')); app.use(express.static(__dirname + '/public'));
var https = require('https'); // var https = require('https');
var server = https.createServer({ // var server = https.createServer({
key: fs.readFileSync('/var/www/sharewithme/ssl/privkey.pem').toString(), // key: fs.readFileSync('/var/www/sharewithme/ssl/privkey.pem').toString(),
cert: fs.readFileSync('/var/www/sharewithme/ssl/fullchain.pem').toString() // cert: fs.readFileSync('/var/www/sharewithme/ssl/fullchain.pem').toString()
}, app); // }, app);
// var http = require('http'); var http = require('http');
// var server = http.createServer(app); var server = http.createServer(app);
// Start Binary.js server // Start Binary.js server
var BinaryServer = require('binaryjs').BinaryServer; var BinaryServer = require('binaryjs').BinaryServer;