mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Asynchronous https support
This commit is contained in:
parent
f7e0f55c13
commit
15f97bbf26
9
packages/node_modules/node-red/settings.js
vendored
9
packages/node_modules/node-red/settings.js
vendored
@ -145,13 +145,20 @@ module.exports = {
|
|||||||
// key: fs.readFileSync('privkey.pem'),
|
// key: fs.readFileSync('privkey.pem'),
|
||||||
// cert: fs.readFileSync('cert.pem')
|
// cert: fs.readFileSync('cert.pem')
|
||||||
//},
|
//},
|
||||||
// This property can also be a function (e.g. to automatic refresh the https settings):
|
// This property can also be a function (e.g. to automatic refresh the https settings synchronously):
|
||||||
//https: function() {
|
//https: function() {
|
||||||
// return {
|
// return {
|
||||||
// key: fs.readFileSync('privkey.pem'),
|
// key: fs.readFileSync('privkey.pem'),
|
||||||
// cert: fs.readFileSync('cert.pem')
|
// cert: fs.readFileSync('cert.pem')
|
||||||
// }
|
// }
|
||||||
//},
|
//},
|
||||||
|
// This property can also be a promise (e.g. to automatic refresh the https settings asynchronously):
|
||||||
|
//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 regular time intervals (seconds).
|
// 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)!
|
// Prerequisite: the 'https' property should be enabled (based on a function)!
|
||||||
|
Loading…
Reference in New Issue
Block a user