This repository was archived by the owner on Feb 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.sample.js
More file actions
49 lines (42 loc) · 1.43 KB
/
config.sample.js
File metadata and controls
49 lines (42 loc) · 1.43 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Sample Configuration
*/
var config = {};
// Secure config
config.basicAuthUser = 'foo';
config.basicAuthPW = 'bar';
config.GoogleAPI = '';
// more public config
config.HTTPPort = 3001;
config.MQTTHost = 'mqtt://mi5.itq.de';
config.MongoDBHost = 'mongodb://localhost/test';
config.OrderHandling = {};
config.OrderHandling.withoutApproval = ['mi5', 'EU'];
config.OrderHandling.prioritySettings = {
standard : 3,
EU : 1
};
config.Cocktails = [10051,10053,10055,10060,10061,10062,10063,10065,10066,10067,10070,10071,10072,10056,10057];
config.Cookies = [10017,10018,10019];
// Override some configuration for local tests
if(process.env.TEST){
// Secure config
config.basicAuthUser = 'foo';
config.basicAuthPW = 'bar';
config.GoogleAPI = '';
// more public config
config.HTTPPort = 3001;
config.MQTTHost = 'mqtt://localhost';
config.MongoDBPath = '"C:\\Program Files\\MongoDB\\Server\\3.0\\bin\\mongod.exe" --dbpath C:\\Thomas\\mi5\\mongodb';
// Start Mongo DB
var exec = require('child_process').exec;
console.log('starting mongoDB', config.MongoDBPath);
exec(config.MongoDBPath, function(error, stdout, stderr){
console.log('ChildProcess'.red, 'stdout:', stdout, 'stderr:', stderr);
if (error !== null) {
console.log('ChildProcess'.red, 'exec error: ' + error);
}
});
config.MongoDBHost = 'mongodb://localhost/test';
}
module.exports = config;