config.local.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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: // uat
  14. 'http://10.124.20.2:60083/fawtsp/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
  15. };
  16. config.mongoose = {
  17. clients: {
  18. etlDB: { // 原始数据库
  19. url: 'mongodb://faw-etl:faw-etl123@uat.dbaas.private:27028/faw-etl', // uat
  20. options: {
  21. useUnifiedTopology: true,
  22. poolSize: 40,
  23. },
  24. },
  25. etlLocalDB: { // 本地清洗后的数据库
  26. url: 'mongodb://local3:local3%40123@uat.dbaas.private:27028/faw-etl-local3', // uat
  27. options: {
  28. useUnifiedTopology: true,
  29. poolSize: 40,
  30. },
  31. },
  32. },
  33. };
  34. config.redis = { // uat
  35. client: {
  36. cluster: true,
  37. nodes: [
  38. {
  39. host: '10.124.8.41',
  40. port: 16377,
  41. family: 'tsp',
  42. password: 'tsp2020',
  43. db: 0,
  44. },
  45. {
  46. host: '10.124.8.105',
  47. port: 16377,
  48. family: 'tsp',
  49. password: 'tsp2020',
  50. db: 0,
  51. },
  52. {
  53. host: '10.124.8.75',
  54. port: 16377,
  55. family: 'tsp',
  56. password: 'tsp2020',
  57. db: 0,
  58. },
  59. {
  60. host: '10.124.8.104',
  61. port: 16377,
  62. family: 'tsp',
  63. password: 'tsp2020',
  64. db: 0,
  65. },
  66. {
  67. host: '10.124.8.95',
  68. port: 16377,
  69. family: 'tsp',
  70. password: 'tsp2020',
  71. db: 0,
  72. },
  73. {
  74. host: '10.124.8.63',
  75. port: 16377,
  76. family: 'tsp',
  77. password: 'tsp2020',
  78. db: 0,
  79. },
  80. ],
  81. },
  82. };
  83. return {
  84. ...userConfig,
  85. ...config,
  86. };
  87. };