3466b0470ed912fc8164f5ebaf931255384a8e16
[sdnc/oam.git] / dgbuilder / settings.js.orig
1 /**
2  * Copyright 2013 IBM Corp.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  **/
16 module.exports = {
17     // the tcp port that the Node-RED web server is listening on
18     uiPort: 1880,
19
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",
24
25     // Retry time in milliseconds for MQTT connections
26     mqttReconnectTime: 15000,
27
28     // Retry time in milliseconds for Serial port connections
29     serialReconnectTime: 15000,
30
31     // Retry time in milliseconds for TCP socket connections
32     //socketReconnectTime: 10000,
33
34     // Timeout in milliseconds for TCP server socket connections
35     //  defaults to no timeout
36     //socketTimeout: 120000,
37
38     // Maximum number of lines in debug window before pruning
39     debugMaxLength: 1000,
40
41     // The file containing the flows. If not set, it defaults to flows_<hostname>.json
42     //flowFile: 'flows.json',
43
44     // To enabled pretty-printing of the flow within the flow file, set the following
45     //  property to true:
46     //flowFilePretty: true,
47     
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/',
51
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',
55
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',
60
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"},
64
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
68     // disabled.
69     //httpNodeRoot: '/nodes',
70     
71     // To password protect the node-defined HTTP endpoints, the following property
72     // can be used.
73     // The password must be an md5 hash  eg.. 5f4dcc3b5aa765d61d8327deb882cf99 ('password')
74     //httpNodeAuth: {user:"user",pass:"5f4dcc3b5aa765d61d8327deb882cf99"},
75     
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/',
80
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"},
84     
85     // The following property can be used in place of 'httpAdminRoot' and 'httpNodeRoot',
86     // to apply the same root to both parts.
87     //httpRoot: '/red',
88     
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"},
92     
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,
97     
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.
101     //https: {
102     //    key: fs.readFileSync('privatekey.pem'),
103     //    cert: fs.readFileSync('certificate.pem')
104     //},
105
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:
110     //httpNodeCors: {
111     //    origin: "*",
112     //    methods: "GET,PUT,POST,DELETE"
113     //},
114     
115     // Anything in this hash is globally available to all functions.
116     // It is accessed as context.global.
117     // eg:
118     //    functionGlobalContext: { os:require('os') }
119     // can be accessed in a function block as:
120     //    context.global.os
121
122     functionGlobalContext: {
123         // os:require('os'),
124         // bonescript:require('bonescript'),
125         // arduino:require('duino')
126     }
127
128 }