1
0
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:
bartbutenaers 2020-05-11 23:29:38 +02:00 committed by GitHub
parent f7e0f55c13
commit 15f97bbf26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)!