mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
httpsRefreshInterval in seconds
This commit is contained in:
parent
e16f48c9fd
commit
f7e0f55c13
4
packages/node_modules/node-red/red.js
vendored
4
packages/node_modules/node-red/red.js
vendored
@ -156,7 +156,7 @@ if (settings.https) {
|
||||
if (settings.httpsRefreshInterval) {
|
||||
if (typeof startupHttps === "function") {
|
||||
if (server.setSecureContext) {
|
||||
console.log("Refreshing https settings every " + parseInt(settings.httpsRefreshInterval) + " mseconds.");
|
||||
console.log("Refreshing https settings every " + parseInt(settings.httpsRefreshInterval) + " seconds.");
|
||||
setInterval(function () {
|
||||
try {
|
||||
// Get the result of the function, because createServer doesn't accept functions as input
|
||||
@ -175,7 +175,7 @@ if (settings.https) {
|
||||
} catch(err) {
|
||||
console.log("Failed to refresh the https settings: " + err);
|
||||
}
|
||||
}, parseInt(settings.httpsRefreshInterval));
|
||||
}, parseInt(settings.httpsRefreshInterval)*1000);
|
||||
} else {
|
||||
console.log("Cannot refresh the https settings automatically, because NodeJs version 11 or above is required.");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user