...
|
...
|
@@ -15,29 +15,41 @@ module.exports = { |
|
|
port: 6002,
|
|
|
siteUrl: 'http://www.yohobuy.com',
|
|
|
domains: {
|
|
|
api: 'http://devapi.yoho.cn:58078/',
|
|
|
service: 'http://devservice.yoho.cn:58077/',
|
|
|
search: 'http://192.168.102.216:8080/yohosearch/'
|
|
|
favApi: 'http://192.168.102.31:8092/brower',
|
|
|
api: 'http://api.yoho.yohoops.org/',
|
|
|
service: 'http://service.yoho.yohoops.org/',
|
|
|
search: 'http://search.yohoops.org/yohosearch/'
|
|
|
},
|
|
|
subDomains: {
|
|
|
host: 'www.yohobuy.com',
|
|
|
host: '.yohobuy.com',
|
|
|
default: '//www.yohobuy.com',
|
|
|
guang: '//guang.yohobuy.com',
|
|
|
list: '//list.yohobuy.com',
|
|
|
search: '//search.yohobuy.com',
|
|
|
huodong: '//huodong.yohobuy.com',
|
|
|
activity: '//activity.yohobuy.com',
|
|
|
index: '//www.yohobuy.com'
|
|
|
index: '//yohobuy.com'
|
|
|
},
|
|
|
useOneapm: false,
|
|
|
useCache: false,
|
|
|
memcache: {
|
|
|
master: ['192.168.102.222:11213'],
|
|
|
slave: ['192.168.102.222:11213'],
|
|
|
session: ['192.168.102.222:11213'],
|
|
|
master: ['127.0.0.1:11211'],
|
|
|
slave: ['127.0.0.1:11211'],
|
|
|
session: ['127.0.0.1:11211'],
|
|
|
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'
|
|
|
}
|
|
|
},
|
|
|
loggers: {
|
|
|
infoFile: {
|
|
|
name: 'info',
|
...
|
...
|
@@ -49,10 +61,10 @@ module.exports = { |
|
|
name: 'error',
|
|
|
level: 'error',
|
|
|
filename: 'logs/error.log',
|
|
|
handleExceptions: true,
|
|
|
maxFiles: 7
|
|
|
handleExceptions: true
|
|
|
},
|
|
|
udp: { // send by udp
|
|
|
measurement: 'yohobuy_node_log',
|
|
|
level: 'debug', // logger level
|
|
|
host: 'influxdblog.yohoops.org', // influxdb host
|
|
|
port: '4444' // influxdb port
|
...
|
...
|
@@ -86,15 +98,27 @@ if (isProduction) { |
|
|
timeout: 3000
|
|
|
},
|
|
|
useOneapm: true,
|
|
|
useCache: 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'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
} else if (isTest) {
|
|
|
Object.assign(module.exports, {
|
|
|
appName: 'www.yohobuy.com for test',
|
|
|
domains: {
|
|
|
api: 'http://testapi.yoho.cn:28078/',
|
|
|
service: 'http://testservice.yoho.cn:28077/',
|
|
|
search: 'http://192.168.102.216:8080/yohosearch/'
|
|
|
favApi: 'http://192.168.102.31:8092/brower',
|
|
|
api: process.env.TEST_API || 'http://testapi.yoho.cn:28078/',
|
|
|
service: process.env.TEST_SERVICE || 'http://testservice.yoho.cn:28077/',
|
|
|
search: process.env.TEST_SEARCH || 'http://192.168.102.216:8080/yohosearch/'
|
|
|
},
|
|
|
useOneapm: true,
|
|
|
useCache: true,
|
...
|
...
|
|