config.prod3.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /* eslint valid-jsdoc: "off" */
  2. 'use strict';
  3. /**
  4. * @param {Egg.EggAppInfo} appInfo app info
  5. */
  6. module.exports = () => {
  7. /**
  8. * built-in config
  9. * @type {Egg.EggAppConfig}
  10. **/
  11. const config = exports = {};
  12. const userConfig = {
  13. chargingCycleApi: // 生产
  14. 'http://10.7.116.247:60080/test/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
  15. rbacApi: // 生产
  16. 'http://10.7.116.247:60080/test/faw-ops-portal/op/portal/basic/userInfoFind/account/loginByToken',
  17. travelApi: // 生产
  18. 'http://10.7.116.247:60080/test/fawiovconditionquery/iov/vhl/locationsList',
  19. };
  20. config.mongoose = {
  21. clients: {
  22. etlDB: { // 原始数据库
  23. url: 'mongodb://faw-etl:faw-etl123@10.120.9.133:27042,10.120.9.134:27042,10.120.9.135:27042/faw-etl?replicaSet=rs', // 生产
  24. options: {
  25. socketTimeoutMS: 900000,
  26. useUnifiedTopology: true,
  27. poolSize: 40,
  28. },
  29. },
  30. etlLocalDB: { // 本地清洗后的数据库
  31. url: 'mongodb://faw-etl:faw-etl123@10.120.9.133:27042,10.120.9.134:27042,10.120.9.135:27042/faw-etl-local3?replicaSet=rs', // 生产
  32. options: {
  33. socketTimeoutMS: 900000,
  34. useUnifiedTopology: true,
  35. poolSize: 40,
  36. },
  37. },
  38. etlAutoDB: {
  39. url: 'mongodb://faw:fawl123@10.120.8.56:27041,10.120.8.19:27041,10.120.8.38:27041/faw?replicaSet=rs', // 生产
  40. options: {
  41. socketTimeoutMS: 900000,
  42. useUnifiedTopology: true,
  43. poolSize: 40,
  44. },
  45. },
  46. },
  47. };
  48. config.redis = {
  49. client: {
  50. cluster: true,
  51. nodes: [
  52. {
  53. host: '10.120.8.70',
  54. port: 16377,
  55. family: 'tsp',
  56. password: 'tspRedis123',
  57. db: 0,
  58. },
  59. {
  60. host: '10.120.8.64',
  61. port: 16377,
  62. family: 'tsp',
  63. password: 'tspRedis123',
  64. db: 0,
  65. },
  66. {
  67. host: '10.120.8.68',
  68. port: 16377,
  69. family: 'tsp',
  70. password: 'tspRedis123',
  71. db: 0,
  72. },
  73. {
  74. host: '10.120.8.71',
  75. port: 16377,
  76. family: 'tsp',
  77. password: 'tspRedis123',
  78. db: 0,
  79. },
  80. {
  81. host: '10.120.8.67',
  82. port: 16377,
  83. family: 'tsp',
  84. password: 'tspRedis123',
  85. db: 0,
  86. },
  87. {
  88. host: '10.120.8.75',
  89. port: 16377,
  90. family: 'tsp',
  91. password: 'tspRedis123',
  92. db: 0,
  93. },
  94. {
  95. host: '10.120.8.66',
  96. port: 16377,
  97. family: 'tsp',
  98. password: 'tspRedis123',
  99. db: 0,
  100. },
  101. {
  102. host: '10.120.8.74',
  103. port: 16377,
  104. family: 'tsp',
  105. password: 'tspRedis123',
  106. db: 0,
  107. },
  108. {
  109. host: '10.120.8.69',
  110. port: 16377,
  111. family: 'tsp',
  112. password: 'tspRedis123',
  113. db: 0,
  114. },
  115. {
  116. host: '10.120.8.104',
  117. port: 16377,
  118. family: 'tsp',
  119. password: 'tspRedis123',
  120. db: 0,
  121. },
  122. {
  123. host: '10.120.8.73',
  124. port: 16377,
  125. family: 'tsp',
  126. password: 'tspRedis123',
  127. db: 0,
  128. },
  129. {
  130. host: '10.120.8.65',
  131. port: 16377,
  132. family: 'tsp',
  133. password: 'tspRedis123',
  134. db: 0,
  135. },
  136. ],
  137. },
  138. };// 生产
  139. return {
  140. ...config,
  141. ...userConfig,
  142. };
  143. };