mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Asynchronous https support
This commit is contained in:
		
							
								
								
									
										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'), | ||||
|     //  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)! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user