config.local.js 3.3 KB

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