config.js
859 Bytes
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
50
51
52
// # config
exports = module.exports = function() {
return {
defaults: {
server: {
host: 'localhost',
clusterEnabled: true
},
cookieParser: '',
mongo: {
host: 'localhost',
port: '27017',
opts: {}
},
redis: {
host: 'localhost',
port: 6379,
maxAge: 24 * 60 * 60 * 1000
}
},
development: {
server: {
env: 'development',
port: 3000,
},
mongo: {
dbname: 'igloo-development',
},
redis: {
prefix: 'igloo-development'
}
},
production: {
server: {
env: 'production',
port: 80,
},
mongo: {
dbname: 'igloo-production',
},
redis: {
prefix: 'igloo-production'
}
}
}
}
exports['@singleton'] = true