mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-01 11:06:24 -04:00
Merge manually
This commit is contained in:
parent
869ee8ec50
commit
719ef856e8
7 changed files with 51 additions and 57 deletions
|
@ -19,6 +19,10 @@ const sslKeyPassphrase = args["ssl-key-passphrase"] || process.env.UPTIME_KUMA_S
|
|||
|
||||
const isSSL = sslKey && sslCert;
|
||||
|
||||
/**
|
||||
* Get the local WebSocket URL
|
||||
* @returns {string} The local WebSocket URL
|
||||
*/
|
||||
function getLocalWebSocketURL() {
|
||||
const protocol = isSSL ? "wss" : "ws";
|
||||
const host = hostname || "localhost";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue