1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Add hint on requiring fs module in settings.js

This commit is contained in:
Nick O'Leary 2014-10-22 21:44:01 +01:00
parent fe95a98339
commit 5fd1ff5137

View File

@ -13,6 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
**/ **/
// The `https` setting requires the `fs` module. Uncomment the following
// to make it available:
//var fs = require("fs");
module.exports = { module.exports = {
// the tcp port that the Node-RED web server is listening on // the tcp port that the Node-RED web server is listening on
uiPort: 1880, uiPort: 1880,
@ -98,6 +104,9 @@ module.exports = {
// The following property can be used to enable HTTPS // The following property can be used to enable HTTPS
// See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
// for details on its contents. // 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: { //https: {
// key: fs.readFileSync('privatekey.pem'), // key: fs.readFileSync('privatekey.pem'),
// cert: fs.readFileSync('certificate.pem') // cert: fs.readFileSync('certificate.pem')