mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Refresh https settings
This commit is contained in:
parent
00d41c6de2
commit
9a19477796
21
packages/node_modules/node-red/settings.js
vendored
21
packages/node_modules/node-red/settings.js
vendored
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user