1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-24 08:32:23 +02:00

add missing cert parameters

This commit is contained in:
LouisLam 2021-09-02 21:13:59 +08:00
parent b30b1d3a52
commit 51cf2ff6f9

View File

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