config.sit.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. useUnifiedTopology: true,
  25. poolSize: 40,
  26. },
  27. },
  28. etlLocalDB: { // 本地清洗后的数据库
  29. url: 'mongodb://local3:local3%40123@uat.dbaas.private:27028/faw-etl-local3', // uat
  30. options: {
  31. useUnifiedTopology: true,
  32. poolSize: 40,
  33. },
  34. },
  35. etlAutoDB: { // 自动化测试数据库
  36. url: 'mongodb://admin:mongo123@uat.dbaas.private:27028/faw', // uat
  37. options: {
  38. useUnifiedTopology: true,
  39. poolSize: 40,
  40. },
  41. },
  42. },
  43. };
  44. config.redis = {
  45. client: {
  46. cluster: true,
  47. nodes: [
  48. {
  49. host: '10.124.8.41',
  50. port: 16377,
  51. family: 'tsp',
  52. password: 'tsp2020',
  53. db: 0,
  54. },
  55. {
  56. host: '10.124.8.105',
  57. port: 16377,
  58. family: 'tsp',
  59. password: 'tsp2020',
  60. db: 0,
  61. },
  62. {
  63. host: '10.124.8.75',
  64. port: 16377,
  65. family: 'tsp',
  66. password: 'tsp2020',
  67. db: 0,
  68. },
  69. {
  70. host: '10.124.8.104',
  71. port: 16377,
  72. family: 'tsp',
  73. password: 'tsp2020',
  74. db: 0,
  75. },
  76. {
  77. host: '10.124.8.95',
  78. port: 16377,
  79. family: 'tsp',
  80. password: 'tsp2020',
  81. db: 0,
  82. },
  83. {
  84. host: '10.124.8.63',
  85. port: 16377,
  86. family: 'tsp',
  87. password: 'tsp2020',
  88. db: 0,
  89. },
  90. ],
  91. },
  92. };
  93. return {
  94. ...userConfig,
  95. ...config,
  96. };
  97. };