From 5fd1ff51376eccc4466a34c940c7583657442440 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 22 Oct 2014 21:44:01 +0100 Subject: [PATCH] Add hint on requiring fs module in settings.js --- settings.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/settings.js b/settings.js index 3466b0470..153d73700 100644 --- a/settings.js +++ b/settings.js @@ -13,6 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ + +// The `https` setting requires the `fs` module. Uncomment the following +// to make it available: +//var fs = require("fs"); + + module.exports = { // the tcp port that the Node-RED web server is listening on uiPort: 1880, @@ -98,6 +104,9 @@ 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. + // //https: { // key: fs.readFileSync('privatekey.pem'), // cert: fs.readFileSync('certificate.pem')