...
|
...
|
@@ -11,17 +11,14 @@ const isTest = process.env.NODE_ENV === 'test'; |
|
|
|
|
|
module.exports = {
|
|
|
app: 'h5',
|
|
|
appVersion: '4.9.2', // 调用api的版本
|
|
|
port: 6001,
|
|
|
siteUrl: '//m.yohobuy.com',
|
|
|
assetUrl: '//localhost:5001',
|
|
|
domains: {
|
|
|
// api: 'http://devapi.yoho.cn:58078/',
|
|
|
// service: 'http://devservice.yoho.cn:58077/'
|
|
|
api: 'http://api.yoho.cn/',
|
|
|
|
|
|
// service: 'http://service.yoho.cn/',
|
|
|
service: 'http://service-test3.yohops.com:9999/',
|
|
|
liveApi: 'http://testapi.live.yohops.com:9999/'
|
|
|
api: 'http://api.yoho.yohoops.org/',
|
|
|
service: 'http://service.yoho.yohoops.org/',
|
|
|
liveApi: 'http://api.live.yoho.cn/'
|
|
|
},
|
|
|
subDomains: {
|
|
|
host: '.m.yohobuy.com',
|
...
|
...
|
@@ -33,25 +30,16 @@ module.exports = { |
|
|
activity: '//activity.yohobuy.com',
|
|
|
index: '//m.yohobuy.com'
|
|
|
},
|
|
|
useOneapm: false,
|
|
|
useCache: false,
|
|
|
memcache: {
|
|
|
master: ['192.168.102.205:12111'],
|
|
|
slave: ['192.168.102.205:12111'],
|
|
|
session: ['192.168.102.205:12111'],
|
|
|
master: ['192.168.102.168:12111'],
|
|
|
slave: ['192.168.102.168:12111'],
|
|
|
session: ['192.168.102.168:12111'],
|
|
|
timeout: 1000,
|
|
|
retries: 0
|
|
|
},
|
|
|
interfaceShunt: {
|
|
|
useInterfaceShunt: false,
|
|
|
tencentServers: {
|
|
|
api: ['123.206.1.98', '123.206.2.80'],
|
|
|
service: ['123.206.1.98', '123.206.2.80']
|
|
|
},
|
|
|
awsServers: {
|
|
|
api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn',
|
|
|
service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn'
|
|
|
}
|
|
|
open: false
|
|
|
},
|
|
|
loggers: {
|
|
|
infoFile: {
|
...
|
...
|
@@ -99,21 +87,13 @@ if (isProduction) { |
|
|
master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
|
|
slave: ['memcache1.yohoops.org:12112', 'memcache2.yohoops.org:12112', 'memcache3.yohoops.org:12112'],
|
|
|
session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],
|
|
|
timeout: 1000,
|
|
|
timeout: 100,
|
|
|
retries: 0
|
|
|
},
|
|
|
useOneapm: true,
|
|
|
useCache: true,
|
|
|
interfaceShunt: {
|
|
|
useInterfaceShunt: false,
|
|
|
tencentServers: {
|
|
|
api: ['123.206.1.98', '123.206.2.80'],
|
|
|
service: ['123.206.1.98', '123.206.2.80']
|
|
|
},
|
|
|
awsServers: {
|
|
|
api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn',
|
|
|
service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn'
|
|
|
}
|
|
|
open: false,
|
|
|
url: 'http://123.206.2.55/strategy'
|
|
|
}
|
|
|
});
|
|
|
} else if (isTest) {
|
...
|
...
|
@@ -121,18 +101,17 @@ if (isProduction) { |
|
|
appName: 'm.yohobuy.com for test',
|
|
|
assetUrl: '//cdn.yoho.cn/m-yohobuy-node/assets',
|
|
|
domains: {
|
|
|
api: 'http://api-test3.yohops.com:9999/',
|
|
|
service: 'http://service-test3.yohops.com:9999/',
|
|
|
liveApi: 'http://testapi.live.yohops.com:9999/'
|
|
|
api: process.env.TEST_API || 'http://api-test1.yohops.com:9999/',
|
|
|
service: process.env.TEST_SERVICE || 'http://service-test1.yohops.com:9999/',
|
|
|
liveApi: process.env.TEST_LIVE || 'http://testapi.live.yohops.com:9999/'
|
|
|
},
|
|
|
memcache: {
|
|
|
master: ['127.0.0.1:12111'],
|
|
|
slave: ['127.0.0.1:12112'],
|
|
|
session: ['127.0.0.1:12111'],
|
|
|
timeout: 1000,
|
|
|
timeout: 100,
|
|
|
retries: 0
|
|
|
},
|
|
|
useOneapm: true,
|
|
|
useCache: true
|
|
|
});
|
|
|
} |
...
|
...
|
|