config.local.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 = {// uat
  13. chargingCycleApi:
  14. 'http://10.124.20.2:60083/fawtsp/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
  15. GDKEY: '61fa7b06efe476b14bfd7cda375d90ff',
  16. GDAPI: 'https://restapi.amap.com/v3/geocode/regeo',
  17. };
  18. config.mongoose = {
  19. clients: {
  20. etlDB: {// 原始数据库
  21. // url: 'mongodb://faw-etl:faw-etl123@10.124.8.116:27016/faw-etl', // uat
  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. },
  36. };
  37. config.redis = {
  38. client: {
  39. cluster: true,
  40. nodes: [
  41. {
  42. host: '10.124.8.41',
  43. port: 16377,
  44. family: 'tsp',
  45. password: 'tsp2020',
  46. db: 0,
  47. },
  48. {
  49. host: '10.124.8.105',
  50. port: 16377,
  51. family: 'tsp',
  52. password: 'tsp2020',
  53. db: 0,
  54. },
  55. {
  56. host: '10.124.8.75',
  57. port: 16377,
  58. family: 'tsp',
  59. password: 'tsp2020',
  60. db: 0,
  61. },
  62. {
  63. host: '10.124.8.104',
  64. port: 16377,
  65. family: 'tsp',
  66. password: 'tsp2020',
  67. db: 0,
  68. },
  69. {
  70. host: '10.124.8.95',
  71. port: 16377,
  72. family: 'tsp',
  73. password: 'tsp2020',
  74. db: 0,
  75. },
  76. {
  77. host: '10.124.8.63',
  78. port: 16377,
  79. family: 'tsp',
  80. password: 'tsp2020',
  81. db: 0,
  82. },
  83. ],
  84. },
  85. };
  86. return {
  87. ...userConfig,
  88. ...config,
  89. };
  90. };