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