From 4a081bf125e351759c0ff1337923d64d4c0d8b63 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 22 Oct 2018 23:00:00 +0100 Subject: [PATCH] Update httpServerOptions doc in settings.js --- packages/node_modules/node-red/settings.js | 25 ++++++---------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/packages/node_modules/node-red/settings.js b/packages/node_modules/node-red/settings.js index 0bee5308c..724cb5a28 100644 --- a/packages/node_modules/node-red/settings.js +++ b/packages/node_modules/node-red/settings.js @@ -181,6 +181,11 @@ module.exports = { // next(); //}, + // The following property can be used to pass custom options to the Express.js + // server used by Node-RED. For a full list of available options, refer + // to http://expressjs.com/en/api.html#app.settings.table + //httpServerOptions: { }, + // The following property can be used to verify websocket connection attempts. // This allows, for example, the HTTP request headers to be checked to ensure // they include valid authentication information. @@ -256,23 +261,5 @@ module.exports = { // To enable the Projects feature, set this value to true enabled: false } - }, - // http://expressjs.com/en/api.html#app.settings.table - //httpServerOptions: { - // 'case sensitive routing': false, - // 'env': false, - // 'etag': false, - // 'jsonp callback name': false, - // 'json escape': false, - // 'json replacer': false, - // 'json spaces': false, - // 'query parser': false, - // 'strict routing': false, - // 'subdomain offset': false, - // 'trust proxy': false, - // 'views': false, - // 'view cache': false, - // 'view engine': false, - // 'x-powered-by': false - //} + } }