config.sit.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. 'use strict';
  2. /**
  3. * @param {Egg.EggAppInfo} appInfo app info
  4. */
  5. module.exports = () => {
  6. /**
  7. * built-in config
  8. * @type {Egg.EggAppConfig}
  9. **/
  10. const config = exports = {};
  11. const userConfig = { // uat
  12. chargingCycleApi:
  13. 'http://10.6.181.34:60080/fawtsp/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
  14. rbacApi: // uat
  15. 'http://10.6.181.34:60080/fawtsp/faw-ops-portal/op/portal/basic/userInfoFind/account/loginByToken',
  16. travelApi: // uat
  17. 'http://10.6.181.34:60080/fawtsp/fawiovconditionquery/iov/vhl/locationsList',
  18. };
  19. config.mongoose = {
  20. clients: {
  21. etlDB: { // 原始数据库
  22. url: 'mongodb://faw-etl:faw-etl123@uat.dbaas.private:27028/faw-etl', // uat
  23. options: {
  24. socketTimeoutMS: 900000,
  25. useUnifiedTopology: true,
  26. poolSize: 40,
  27. },
  28. },
  29. etlLocalDB: { // 本地清洗后的数据库
  30. url: 'mongodb://local3:local3%40123@uat.dbaas.private:27028/faw-etl-local3', // uat
  31. options: {
  32. socketTimeoutMS: 900000,
  33. useUnifiedTopology: true,
  34. poolSize: 40,
  35. },
  36. },
  37. etlAutoDB: { // 自动化测试数据库
  38. url: 'mongodb://admin:mongo123@uat.dbaas.private:27028/faw', // uat
  39. options: {
  40. socketTimeoutMS: 900000,
  41. useUnifiedTopology: true,
  42. poolSize: 40,
  43. },
  44. },
  45. },
  46. };
  47. config.redis = {
  48. client: {
  49. cluster: true,
  50. nodes: [
  51. {
  52. host: '10.124.8.41',
  53. port: 16377,
  54. family: 'tsp',
  55. password: 'tsp2020',
  56. db: 0,
  57. },
  58. {
  59. host: '10.124.8.105',
  60. port: 16377,
  61. family: 'tsp',
  62. password: 'tsp2020',
  63. db: 0,
  64. },
  65. {
  66. host: '10.124.8.75',
  67. port: 16377,
  68. family: 'tsp',
  69. password: 'tsp2020',
  70. db: 0,
  71. },
  72. {
  73. host: '10.124.8.104',
  74. port: 16377,
  75. family: 'tsp',
  76. password: 'tsp2020',
  77. db: 0,
  78. },
  79. {
  80. host: '10.124.8.95',
  81. port: 16377,
  82. family: 'tsp',
  83. password: 'tsp2020',
  84. db: 0,
  85. },
  86. {
  87. host: '10.124.8.63',
  88. port: 16377,
  89. family: 'tsp',
  90. password: 'tsp2020',
  91. db: 0,
  92. },
  93. ],
  94. },
  95. };
  96. return {
  97. ...userConfig,
  98. ...config,
  99. };
  100. };