mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-02 19:24:04 +00:00
add missing cert parameters
This commit is contained in:
parent
b30b1d3a52
commit
51cf2ff6f9
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue