diff --git a/packages/node_modules/node-red/settings.js b/packages/node_modules/node-red/settings.js index c5e4355e1..8be7bf9bd 100644 --- a/packages/node_modules/node-red/settings.js +++ b/packages/node_modules/node-red/settings.js @@ -139,13 +139,24 @@ module.exports = { // The following property can be used to enable HTTPS // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener // for details on its contents. - // See the comment at the top of this file on how to load the `fs` module used by - // this setting. - // + // See the comment at the top of this file on how to load the `fs` module used by this setting. + // This property can be an object, containing both a (private) key and a (public) certificate: //https: { - // key: fs.readFileSync('privatekey.pem'), - // cert: fs.readFileSync('certificate.pem') + // key: fs.readFileSync('privkey.pem'), + // cert: fs.readFileSync('cert.pem') //}, + // This property can also be a function (e.g. to automatic refresh the https settings): + //https: function() { + // return { + // key: fs.readFileSync('privkey.pem'), + // cert: fs.readFileSync('cert.pem') + // } + //}, + + // The following property can be used to refresh the https settings at regular time intervals (seconds). + // Prerequisite: the 'https' property should be enabled (based on a function)! + // Caution: NodeJs version 11 or above is required to use this option! + //httpsRefreshInterval : 3600, // The following property can be used to cause insecure HTTP connections to // be redirected to HTTPS.