config.prod3.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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.8.56:27041,10.120.8.19:27041,10.120.8.38:27041/faw-etl?replicaSet=rs', // 生产
  24. options: {
  25. useUnifiedTopology: true,
  26. poolSize: 40,
  27. },
  28. },
  29. etlLocalDB: { // 本地清洗后的数据库
  30. url: 'mongodb://faw-etl-local3:faw-etl-local3%40faw@10.120.8.56:27041,10.120.8.19:27041,10.120.8.38:27041/faw-etl-local3?replicaSet=rs', // 生产
  31. options: {
  32. useUnifiedTopology: true,
  33. poolSize: 40,
  34. },
  35. },
  36. etlAutoDB: {
  37. url: 'mongodb://faw:fawl123@10.120.8.56:27041,10.120.8.19:27041,10.120.8.38:27041/faw?replicaSet=rs', // 生产
  38. options: {
  39. useUnifiedTopology: true,
  40. poolSize: 40,
  41. },
  42. },
  43. },
  44. };
  45. config.redis = {
  46. client: {
  47. cluster: true,
  48. nodes: [
  49. {
  50. host: '10.120.8.70',
  51. port: 16377,
  52. family: 'tsp',
  53. password: 'tspRedis123',
  54. db: 0,
  55. },
  56. {
  57. host: '10.120.8.64',
  58. port: 16377,
  59. family: 'tsp',
  60. password: 'tspRedis123',
  61. db: 0,
  62. },
  63. {
  64. host: '10.120.8.68',
  65. port: 16377,
  66. family: 'tsp',
  67. password: 'tspRedis123',
  68. db: 0,
  69. },
  70. {
  71. host: '10.120.8.71',
  72. port: 16377,
  73. family: 'tsp',
  74. password: 'tspRedis123',
  75. db: 0,
  76. },
  77. {
  78. host: '10.120.8.67',
  79. port: 16377,
  80. family: 'tsp',
  81. password: 'tspRedis123',
  82. db: 0,
  83. },
  84. {
  85. host: '10.120.8.75',
  86. port: 16377,
  87. family: 'tsp',
  88. password: 'tspRedis123',
  89. db: 0,
  90. },
  91. {
  92. host: '10.120.8.66',
  93. port: 16377,
  94. family: 'tsp',
  95. password: 'tspRedis123',
  96. db: 0,
  97. },
  98. {
  99. host: '10.120.8.74',
  100. port: 16377,
  101. family: 'tsp',
  102. password: 'tspRedis123',
  103. db: 0,
  104. },
  105. {
  106. host: '10.120.8.69',
  107. port: 16377,
  108. family: 'tsp',
  109. password: 'tspRedis123',
  110. db: 0,
  111. },
  112. {
  113. host: '10.120.8.104',
  114. port: 16377,
  115. family: 'tsp',
  116. password: 'tspRedis123',
  117. db: 0,
  118. },
  119. {
  120. host: '10.120.8.73',
  121. port: 16377,
  122. family: 'tsp',
  123. password: 'tspRedis123',
  124. db: 0,
  125. },
  126. {
  127. host: '10.120.8.65',
  128. port: 16377,
  129. family: 'tsp',
  130. password: 'tspRedis123',
  131. db: 0,
  132. },
  133. ],
  134. },
  135. };// 生产
  136. return {
  137. ...config,
  138. ...userConfig,
  139. };
  140. };