snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit f1ad168e402a9a36991c65c2009f0e9ac77a7b4c
parent 22be7c5cb9237a81e1f6d7d9f72592d7e0548507
Author: Robin Linus <robin_woll@capira.de>
Date:   Wed, 23 Dec 2015 13:58:46 +0100

Use http for development

Diffstat:
Mserver/ws-server.js | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

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