-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsettings.js
30 lines (26 loc) · 1011 Bytes
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// WARNING: this is the default setting.js file
// if another settings file is specified as argument of start.sh or startServer.sh, it will use another one
const SETTINGS = {
client: { // settings for the client part
reloadTimeout: 2000, // timeout before page reloading if error, in ms
isAutoStartElectron: true
},
server: { //settings for the server part
serviceAppHTTPPort: 8080, // http://127.0.0.1
serviceTestHTTPPort: 3000, //if 0, disable this service
serviceAppHTTPPath: '/client/apps/sampleApp/', //goven from jetsonJS path
serviceAppWSPort: 5000, // ws://127.0.0.1
serviceExtWSPort: 8888, // ws://<extIp>
isInvertGPIO: true,
checkDisk: false,
/*checkDisk: { //if not false, check regularly a drive and launch a bash script if disconnected
interval: 1000, //in ms
path: '/',
command: '/debug/restart.sh' //path from jetsonjs/
}*/
}
}
// if node version:
if (typeof(module) === 'object'){
module.exports = SETTINGS
}