-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.js
48 lines (40 loc) · 943 Bytes
/
config.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var path = require('path');
var port = 3000;
var domain = 'http://127.0.0.1';
exports.name = 'trending-food';
exports.port = port;
exports.url = domain + ':' + port;
exports.uploadDir = path.join(__dirname, 'uploads');
exports.backupDir = path.join(__dirname, 'backups');
exports.databases = databases = {
test: {
host: '127.0.0.1',
port: '27017',
name: 'trending-food-test'
},
prod: {
host: '127.0.0.1',
port: '27017',
name: 'trending-food'
}
};
for(var dbname in databases) {
exports.databases[dbname].domain = 'mongodb://' + databases[dbname].host + ':' + databases[dbname].port + '/' + databases[dbname].name;
}
exports.meal = {
amount: {
default: 0,
min: 0,
max: 99
},
votes: {
default: 0,
min: 0
}
};
exports.mealtime = {
minutesBeforeLock : {
default: 60
}
};
exports.mealtimelimit = 24;