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
1 changed files with 8 additions and 1 deletions

View File

@ -145,13 +145,20 @@ module.exports = {
// 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):
// This property can also be a function (e.g. to automatic refresh the https settings synchronously):
//https: function() {
// return {
// key: fs.readFileSync('privkey.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).
// Prerequisite: the 'https' property should be enabled (based on a function)!