Trying with http2

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-09 14:01:40 +01:00
parent ee085bcf07
commit 913382c7f2
4 changed files with 9 additions and 2 deletions

View File

@@ -78,10 +78,10 @@ function startSingle(clustered, redis_enabled) {
ca: ca
};
var https = require('https');
server = https.Server(credentials, routingFunction);
server = require('http2').createServer(credentials, routingFunction);
} catch(err){
console.log("Starting without https (probably on localhost)");
server = http.createServer(routingFunction);
server = require('http2').createServer(routingFunction);
}
if(clustered) {