|
@@ -11,14 +11,17 @@ const isTest = process.env.NODE_ENV === 'test'; |
|
@@ -11,14 +11,17 @@ const isTest = process.env.NODE_ENV === 'test'; |
11
|
|
11
|
|
12
|
module.exports = {
|
12
|
module.exports = {
|
13
|
app: 'h5',
|
13
|
app: 'h5',
|
14
|
- appVersion: '4.9.2', // 调用api的版本
|
|
|
15
|
port: 6001,
|
14
|
port: 6001,
|
16
|
siteUrl: '//m.yohobuy.com',
|
15
|
siteUrl: '//m.yohobuy.com',
|
17
|
assetUrl: '//localhost:5001',
|
16
|
assetUrl: '//localhost:5001',
|
18
|
domains: {
|
17
|
domains: {
|
19
|
- api: 'http://api.yoho.yohoops.org/',
|
|
|
20
|
- service: 'http://service.yoho.yohoops.org/',
|
|
|
21
|
- liveApi: 'http://api.live.yoho.cn/'
|
18
|
+ // api: 'http://devapi.yoho.cn:58078/',
|
|
|
19
|
+ // service: 'http://devservice.yoho.cn:58077/'
|
|
|
20
|
+ api: 'http://api.yoho.cn/',
|
|
|
21
|
+
|
|
|
22
|
+ // service: 'http://service.yoho.cn/',
|
|
|
23
|
+ service: 'http://service-test3.yohops.com:9999/',
|
|
|
24
|
+ liveApi: 'http://testapi.live.yohops.com:9999/'
|
22
|
},
|
25
|
},
|
23
|
subDomains: {
|
26
|
subDomains: {
|
24
|
host: '.m.yohobuy.com',
|
27
|
host: '.m.yohobuy.com',
|
|
@@ -30,16 +33,25 @@ module.exports = { |
|
@@ -30,16 +33,25 @@ module.exports = { |
30
|
activity: '//activity.yohobuy.com',
|
33
|
activity: '//activity.yohobuy.com',
|
31
|
index: '//m.yohobuy.com'
|
34
|
index: '//m.yohobuy.com'
|
32
|
},
|
35
|
},
|
|
|
36
|
+ useOneapm: false,
|
33
|
useCache: false,
|
37
|
useCache: false,
|
34
|
memcache: {
|
38
|
memcache: {
|
35
|
- master: ['192.168.102.168:12111'],
|
|
|
36
|
- slave: ['192.168.102.168:12111'],
|
|
|
37
|
- session: ['192.168.102.168:12111'],
|
39
|
+ master: ['192.168.102.205:12111'],
|
|
|
40
|
+ slave: ['192.168.102.205:12111'],
|
|
|
41
|
+ session: ['192.168.102.205:12111'],
|
38
|
timeout: 1000,
|
42
|
timeout: 1000,
|
39
|
retries: 0
|
43
|
retries: 0
|
40
|
},
|
44
|
},
|
41
|
interfaceShunt: {
|
45
|
interfaceShunt: {
|
42
|
- open: false
|
46
|
+ useInterfaceShunt: false,
|
|
|
47
|
+ tencentServers: {
|
|
|
48
|
+ api: ['123.206.1.98', '123.206.2.80'],
|
|
|
49
|
+ service: ['123.206.1.98', '123.206.2.80']
|
|
|
50
|
+ },
|
|
|
51
|
+ awsServers: {
|
|
|
52
|
+ api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn',
|
|
|
53
|
+ service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn'
|
|
|
54
|
+ }
|
43
|
},
|
55
|
},
|
44
|
loggers: {
|
56
|
loggers: {
|
45
|
infoFile: {
|
57
|
infoFile: {
|
|
@@ -87,13 +99,21 @@ if (isProduction) { |
|
@@ -87,13 +99,21 @@ if (isProduction) { |
87
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
99
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
88
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
100
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
89
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
101
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
90
|
- timeout: 100,
|
102
|
+ timeout: 1000,
|
91
|
retries: 0
|
103
|
retries: 0
|
92
|
},
|
104
|
},
|
|
|
105
|
+ useOneapm: true,
|
93
|
useCache: true,
|
106
|
useCache: true,
|
94
|
interfaceShunt: {
|
107
|
interfaceShunt: {
|
95
|
- open: false,
|
|
|
96
|
- url: 'http://123.206.2.55/strategy'
|
108
|
+ useInterfaceShunt: false,
|
|
|
109
|
+ tencentServers: {
|
|
|
110
|
+ api: ['123.206.1.98', '123.206.2.80'],
|
|
|
111
|
+ service: ['123.206.1.98', '123.206.2.80']
|
|
|
112
|
+ },
|
|
|
113
|
+ awsServers: {
|
|
|
114
|
+ api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn',
|
|
|
115
|
+ service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn'
|
|
|
116
|
+ }
|
97
|
}
|
117
|
}
|
98
|
});
|
118
|
});
|
99
|
} else if (isTest) {
|
119
|
} else if (isTest) {
|
|
@@ -101,17 +121,18 @@ if (isProduction) { |
|
@@ -101,17 +121,18 @@ if (isProduction) { |
101
|
appName: 'm.yohobuy.com for test',
|
121
|
appName: 'm.yohobuy.com for test',
|
102
|
assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets',
|
122
|
assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets',
|
103
|
domains: {
|
123
|
domains: {
|
104
|
- api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
|
|
105
|
- service: process.env.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|
|
|
106
|
- liveApi: process.env.TEST_LIVE || 'http://testapi.live.yohops.com:9999/'
|
124
|
+ api: 'http://api-test3.yohops.com:9999/',
|
|
|
125
|
+ service: 'http://service-test3.yohops.com:9999/',
|
|
|
126
|
+ liveApi: 'http://testapi.live.yohops.com:9999/'
|
107
|
},
|
127
|
},
|
108
|
memcache: {
|
128
|
memcache: {
|
109
|
master: ['127.0.0.1:12111'],
|
129
|
master: ['127.0.0.1:12111'],
|
110
|
slave: ['127.0.0.1:12112'],
|
130
|
slave: ['127.0.0.1:12112'],
|
111
|
session: ['127.0.0.1:12111'],
|
131
|
session: ['127.0.0.1:12111'],
|
112
|
- timeout: 100,
|
132
|
+ timeout: 1000,
|
113
|
retries: 0
|
133
|
retries: 0
|
114
|
},
|
134
|
},
|
|
|
135
|
+ useOneapm: true,
|
115
|
useCache: true
|
136
|
useCache: true
|
116
|
});
|
137
|
});
|
117
|
} |
138
|
} |