2 * Copyright 2013 IBM Corp.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 // the tcp port that the Node-RED web server is listening on
20 // By default, the Node-RED UI accepts connections on all IPv4 interfaces.
21 // The following property can be used to listen on a specific interface. For
22 // example, the following would only allow connections from the local machine.
23 //uiHost: "127.0.0.1",
25 // Retry time in milliseconds for MQTT connections
26 mqttReconnectTime: 15000,
28 // Retry time in milliseconds for Serial port connections
29 serialReconnectTime: 15000,
31 // Retry time in milliseconds for TCP socket connections
32 //socketReconnectTime: 10000,
34 // Timeout in milliseconds for TCP server socket connections
35 // defaults to no timeout
36 //socketTimeout: 120000,
38 // Maximum number of lines in debug window before pruning
41 // The file containing the flows. If not set, it defaults to flows_<hostname>.json
42 //flowFile: 'flows.json',
44 // To enabled pretty-printing of the flow within the flow file, set the following
46 //flowFilePretty: true,
48 // By default, all user data is stored in the Node-RED install directory. To
49 // use a different location, the following property can be used
50 //userDir: '/home/nol/.node-red/',
52 // Node-RED scans the `nodes` directory in the install directory to find nodes.
53 // The following property can be used to specify an additional directory to scan.
54 //nodesDir: '/home/nol/.node-red/nodes',
56 // By default, the Node-RED UI is available at http://localhost:1880/
57 // The following property can be used to specifiy a different root path.
58 // If set to false, this is disabled.
59 //httpAdminRoot: '/admin',
61 // You can protect the user interface with a userid and password by using the following property.
62 // The password must be an md5 hash eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
63 //httpAdminAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
65 // Some nodes, such as HTTP In, can be used to listen for incoming http requests.
66 // By default, these are served relative to '/'. The following property
67 // can be used to specifiy a different root path. If set to false, this is
69 //httpNodeRoot: '/nodes',
71 // To password protect the node-defined HTTP endpoints, the following property
73 // The password must be an md5 hash eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
74 //httpNodeAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
76 // When httpAdminRoot is used to move the UI to a different root path, the
77 // following property can be used to identify a directory of static content
78 // that should be served at http://localhost:1880/.
79 //httpStatic: '/home/nol/node-red-dashboard/',
81 // To password protect the static content, the following property can be used.
82 // The password must be an md5 hash eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
83 //httpStaticAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
85 // The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
86 // to apply the same root to both parts.
89 // The following property can be used in place of 'httpAdminAuth' and 'httpNodeAuth',
90 // to apply the same authentication to both parts.
91 //httpAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
93 // The following property can be used to disable the editor. The admin API
94 // is not affected by this option. To disable both the editor and the admin
95 // API, use either the httpRoot or httpAdminRoot properties
96 //disableEditor: false,
98 // The following property can be used to enable HTTPS
99 // See http://nodejs.org/api/https.html#https_https_createserver_options_requestlistener
100 // for details on its contents.
102 // key: fs.readFileSync('privatekey.pem'),
103 // cert: fs.readFileSync('certificate.pem')
106 // The following property can be used to configure cross-origin resource sharing
107 // in the HTTP nodes.
108 // See https://github.com/troygoode/node-cors#configuration-options for
109 // details on its contents. The following is a basic permissive set of options:
112 // methods: "GET,PUT,POST,DELETE"
115 // Anything in this hash is globally available to all functions.
116 // It is accessed as context.global.
118 // functionGlobalContext: { os:require('os') }
119 // can be accessed in a function block as:
122 functionGlobalContext: {
124 // bonescript:require('bonescript'),
125 // arduino:require('duino')