config.js
1.9 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// # config
var path = require('path');
exports = module.exports = function () {
return {
defaults: {
server: {
env: 'development'
}
},
test: {
cache: true,
url: 'http://localhost:5999',
restful: {
url: 'http://172.21.0.8:20000/',
ossUrl: 'http://172.21.0.8:10001/v1/',
version: '/v1'
},
server: {
host: '0.0.0.0',
env: 'production',
port: 5999,
cluster: false
},
redis: {
prefix: 'igloo_production_test_develop',
host: '172.21.0.8',
port: 38888,
pass: 'Q*Kr4?#Rg!'
},
logger: {
'console': true,
requests: true,
mongo: false,
file: {
filename: '/opt/work/hro/frontend/hro-develop/igloo.log',
timestamp: true
}
}
},
development: {
cache: true,
url: 'http://localhost:3000',
server: {
env: 'development',
port: 3000,
},
redis: {
prefix: 'igloo-development',
host: '127.0.0.1',
port: 6379,
pass: '',
}
},
production: {
cache: false,
url: 'http://localhost:6868',
restful: {
url: 'http://192.168.2.72:20000/',
ossUrl: 'http://192.168.2.72:20000/',
version: '/v1'
},
server: {
host: '0.0.0.0',
env: 'production',
port: 6868,
cluster: false
}
}
};
};
exports['@singleton'] = true;