mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch 'pr_2551' into dev
This commit is contained in:
33
packages/node_modules/node-red/settings.js
vendored
33
packages/node_modules/node-red/settings.js
vendored
@@ -139,13 +139,36 @@ 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 either an object, containing both a (private) key and a (public) certificate,
|
||||
// or a function that returns such an object:
|
||||
//// https object:
|
||||
//https: {
|
||||
// key: fs.readFileSync('privatekey.pem'),
|
||||
// cert: fs.readFileSync('certificate.pem')
|
||||
// key: fs.readFileSync('privkey.pem'),
|
||||
// cert: fs.readFileSync('cert.pem')
|
||||
//},
|
||||
////https synchronous function:
|
||||
//https: function() {
|
||||
// return {
|
||||
// key: fs.readFileSync('privkey.pem'),
|
||||
// cert: fs.readFileSync('cert.pem')
|
||||
// }
|
||||
//},
|
||||
//// https asynchronous function:
|
||||
//https: function() {
|
||||
// return Promise.resolve({
|
||||
// key: fs.readFileSync('privkey.pem'),
|
||||
// cert: fs.readFileSync('cert.pem')
|
||||
// });
|
||||
//},
|
||||
|
||||
// The following property can be used to refresh the https settings at a
|
||||
// regular time interval in hours.
|
||||
// This requires:
|
||||
// - the `https` setting to be a function that can be called to get
|
||||
// the refreshed settings.
|
||||
// - Node.js 11 or later.
|
||||
//httpsRefreshInterval : 12,
|
||||
|
||||
// The following property can be used to cause insecure HTTP connections to
|
||||
// be redirected to HTTPS.
|
||||
|
Reference in New Issue
Block a user