|
|
@ -65,7 +65,10 @@ let server;
|
|
|
|
|
|
|
|
|
|
|
|
if (sslKey && sslCert) {
|
|
|
|
if (sslKey && sslCert) {
|
|
|
|
console.log("Server Type: HTTPS");
|
|
|
|
console.log("Server Type: HTTPS");
|
|
|
|
server = https.createServer(app);
|
|
|
|
server = https.createServer({
|
|
|
|
|
|
|
|
key: sslKey,
|
|
|
|
|
|
|
|
cert: sslCert
|
|
|
|
|
|
|
|
}, app);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log("Server Type: HTTP");
|
|
|
|
console.log("Server Type: HTTP");
|
|
|
|
server = http.createServer(app);
|
|
|
|
server = http.createServer(app);
|
|
|
|