Authored by htoooth

add sms account input

@@ -15,29 +15,41 @@ module.exports = { @@ -15,29 +15,41 @@ module.exports = {
15 port: 6002, 15 port: 6002,
16 siteUrl: 'http://www.yohobuy.com', 16 siteUrl: 'http://www.yohobuy.com',
17 domains: { 17 domains: {
18 - api: 'http://devapi.yoho.cn:58078/',  
19 - service: 'http://devservice.yoho.cn:58077/',  
20 - search: 'http://192.168.102.216:8080/yohosearch/' 18 + favApi: 'http://192.168.102.31:8092/brower',
  19 + api: 'http://api.yoho.yohoops.org/',
  20 + service: 'http://service.yoho.yohoops.org/',
  21 + search: 'http://search.yohoops.org/yohosearch/'
21 }, 22 },
22 subDomains: { 23 subDomains: {
23 - host: 'www.yohobuy.com', 24 + host: '.yohobuy.com',
24 default: '//www.yohobuy.com', 25 default: '//www.yohobuy.com',
25 guang: '//guang.yohobuy.com', 26 guang: '//guang.yohobuy.com',
26 list: '//list.yohobuy.com', 27 list: '//list.yohobuy.com',
27 search: '//search.yohobuy.com', 28 search: '//search.yohobuy.com',
28 huodong: '//huodong.yohobuy.com', 29 huodong: '//huodong.yohobuy.com',
29 activity: '//activity.yohobuy.com', 30 activity: '//activity.yohobuy.com',
30 - index: '//www.yohobuy.com' 31 + index: '//yohobuy.com'
31 }, 32 },
32 useOneapm: false, 33 useOneapm: false,
33 useCache: false, 34 useCache: false,
34 memcache: { 35 memcache: {
35 - master: ['192.168.102.222:11213'],  
36 - slave: ['192.168.102.222:11213'],  
37 - session: ['192.168.102.222:11213'], 36 + master: ['127.0.0.1:11211'],
  37 + slave: ['127.0.0.1:11211'],
  38 + session: ['127.0.0.1:11211'],
38 timeout: 1000, 39 timeout: 1000,
39 retries: 0 40 retries: 0
40 }, 41 },
  42 + interfaceShunt: {
  43 + useInterfaceShunt: false,
  44 + tencentServers: {
  45 + api: ['123.206.1.98', '123.206.2.80'],
  46 + service: ['123.206.1.98', '123.206.2.80']
  47 + },
  48 + awsServers: {
  49 + api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn',
  50 + service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn'
  51 + }
  52 + },
41 loggers: { 53 loggers: {
42 infoFile: { 54 infoFile: {
43 name: 'info', 55 name: 'info',
@@ -49,10 +61,10 @@ module.exports = { @@ -49,10 +61,10 @@ module.exports = {
49 name: 'error', 61 name: 'error',
50 level: 'error', 62 level: 'error',
51 filename: 'logs/error.log', 63 filename: 'logs/error.log',
52 - handleExceptions: true,  
53 - maxFiles: 7 64 + handleExceptions: true
54 }, 65 },
55 udp: { // send by udp 66 udp: { // send by udp
  67 + measurement: 'yohobuy_node_log',
56 level: 'debug', // logger level 68 level: 'debug', // logger level
57 host: 'influxdblog.yohoops.org', // influxdb host 69 host: 'influxdblog.yohoops.org', // influxdb host
58 port: '4444' // influxdb port 70 port: '4444' // influxdb port
@@ -86,15 +98,27 @@ if (isProduction) { @@ -86,15 +98,27 @@ if (isProduction) {
86 timeout: 3000 98 timeout: 3000
87 }, 99 },
88 useOneapm: true, 100 useOneapm: true,
89 - useCache: true 101 + useCache: true,
  102 + interfaceShunt: {
  103 + useInterfaceShunt: false,
  104 + tencentServers: {
  105 + api: ['123.206.1.98', '123.206.2.80'],
  106 + service: ['123.206.1.98', '123.206.2.80']
  107 + },
  108 + awsServers: {
  109 + api: 'app-java-168863769.cn-north-1.elb.amazonaws.com.cn',
  110 + service: 'service-yoho-579825100.cn-north-1.elb.amazonaws.com.cn'
  111 + }
  112 + }
90 }); 113 });
91 } else if (isTest) { 114 } else if (isTest) {
92 Object.assign(module.exports, { 115 Object.assign(module.exports, {
93 appName: 'www.yohobuy.com for test', 116 appName: 'www.yohobuy.com for test',
94 domains: { 117 domains: {
95 - api: 'http://testapi.yoho.cn:28078/',  
96 - service: 'http://testservice.yoho.cn:28077/',  
97 - search: 'http://192.168.102.216:8080/yohosearch/' 118 + favApi: 'http://192.168.102.31:8092/brower',
  119 + api: process.env.TEST_API || 'http://testapi.yoho.cn:28078/',
  120 + service: process.env.TEST_SERVICE || 'http://testservice.yoho.cn:28077/',
  121 + search: process.env.TEST_SEARCH || 'http://192.168.102.216:8080/yohosearch/'
98 }, 122 },
99 useOneapm: true, 123 useOneapm: true,
100 useCache: true, 124 useCache: true,