...
|
...
|
@@ -84,7 +84,12 @@ if (isProduction) { |
|
|
singleApi: 'http://single.yoho.cn/',
|
|
|
platformApi: 'http://api.platform.yohoops.org'
|
|
|
},
|
|
|
corsAllowOrigin: ['http://ad.yoho.cn', 'https://ad.yoho.cn'],
|
|
|
corsAllowOrigin: [
|
|
|
'http://ad.yoho.cn',
|
|
|
'https://ad.yoho.cn',
|
|
|
'http://feature.yoho.cn',
|
|
|
'https://feature.yoho.cn'
|
|
|
],
|
|
|
memcache: {
|
|
|
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'],
|
...
|
...
|
@@ -94,7 +99,16 @@ if (isProduction) { |
|
|
timeout: 1000,
|
|
|
retries: 0
|
|
|
},
|
|
|
useCache: true
|
|
|
useCache: true,
|
|
|
mysql: {
|
|
|
connect: {
|
|
|
host: '10.67.2.144',
|
|
|
port: '3307',
|
|
|
user: 'yh_vpc_bak',
|
|
|
password: 'yoho@2Y$^YpNb7hp'
|
|
|
},
|
|
|
database: 'yoho_activity_platform',
|
|
|
}
|
|
|
});
|
|
|
} else if (isTest) {
|
|
|
Object.assign(module.exports, {
|
...
|
...
|
@@ -117,6 +131,15 @@ if (isProduction) { |
|
|
reconnect: 5000,
|
|
|
retries: 0
|
|
|
},
|
|
|
useCache: true
|
|
|
useCache: true,
|
|
|
mysql: {
|
|
|
connect: {
|
|
|
host: 'localhost',
|
|
|
port: '3306',
|
|
|
user: 'root',
|
|
|
password: ''
|
|
|
},
|
|
|
database: 'yoho_activity_platform',
|
|
|
}
|
|
|
});
|
|
|
} |
...
|
...
|
|