config.local.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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.9.133:27042,10.120.9.134:27042,10.120.9.135:27042/faw-etl?replicaSet=rs', // 生产
  20. options: {
  21. socketTimeoutMS: 900000,
  22. useUnifiedTopology: true,
  23. poolSize: 40,
  24. },
  25. },
  26. etlLocalDB: { // 本地清洗后的数据库
  27. url: 'mongodb://faw-etl:faw-etl123@10.120.9.133:27042,10.120.9.134:27042,10.120.9.135:27042/faw-etl-local3?replicaSet=rs', // 生产
  28. options: {
  29. socketTimeoutMS: 900000,
  30. useUnifiedTopology: true,
  31. poolSize: 40,
  32. },
  33. },
  34. etlAutoDB: {
  35. url: 'mongodb://faw:fawl123@10.120.8.56:27041,10.120.8.19:27041,10.120.8.38:27041/faw?replicaSet=rs', // 生产
  36. options: {
  37. socketTimeoutMS: 900000,
  38. useUnifiedTopology: true,
  39. poolSize: 40,
  40. },
  41. },
  42. },
  43. };
  44. config.redis = {
  45. client: {
  46. cluster: true,
  47. nodes: [
  48. {
  49. host: '10.120.8.70',
  50. port: 16377,
  51. family: 'tsp',
  52. password: 'tspRedis123',
  53. db: 0,
  54. },
  55. {
  56. host: '10.120.8.64',
  57. port: 16377,
  58. family: 'tsp',
  59. password: 'tspRedis123',
  60. db: 0,
  61. },
  62. {
  63. host: '10.120.8.68',
  64. port: 16377,
  65. family: 'tsp',
  66. password: 'tspRedis123',
  67. db: 0,
  68. },
  69. {
  70. host: '10.120.8.71',
  71. port: 16377,
  72. family: 'tsp',
  73. password: 'tspRedis123',
  74. db: 0,
  75. },
  76. {
  77. host: '10.120.8.67',
  78. port: 16377,
  79. family: 'tsp',
  80. password: 'tspRedis123',
  81. db: 0,
  82. },
  83. {
  84. host: '10.120.8.75',
  85. port: 16377,
  86. family: 'tsp',
  87. password: 'tspRedis123',
  88. db: 0,
  89. },
  90. {
  91. host: '10.120.8.66',
  92. port: 16377,
  93. family: 'tsp',
  94. password: 'tspRedis123',
  95. db: 0,
  96. },
  97. {
  98. host: '10.120.8.74',
  99. port: 16377,
  100. family: 'tsp',
  101. password: 'tspRedis123',
  102. db: 0,
  103. },
  104. {
  105. host: '10.120.8.69',
  106. port: 16377,
  107. family: 'tsp',
  108. password: 'tspRedis123',
  109. db: 0,
  110. },
  111. {
  112. host: '10.120.8.104',
  113. port: 16377,
  114. family: 'tsp',
  115. password: 'tspRedis123',
  116. db: 0,
  117. },
  118. {
  119. host: '10.120.8.73',
  120. port: 16377,
  121. family: 'tsp',
  122. password: 'tspRedis123',
  123. db: 0,
  124. },
  125. {
  126. host: '10.120.8.65',
  127. port: 16377,
  128. family: 'tsp',
  129. password: 'tspRedis123',
  130. db: 0,
  131. },
  132. ],
  133. },
  134. };// 生产
  135. // const userConfig = { // uat
  136. // chargingCycleApi:
  137. // 'http://10.6.181.34:60080/fawtsp/fawiovconditionquery/iov/analysis/driving-behavior/charging-cycle',
  138. // rbacApi: // uat
  139. // 'http://10.6.181.34:60080/fawtsp/faw-ops-portal/op/portal/basic/userInfoFind/account/loginByToken',
  140. // travelApi: // uat
  141. // 'http://10.6.181.34:60080/fawtsp/fawiovconditionquery/iov/vhl/locationsList',
  142. // };
  143. //
  144. // config.mongoose = {
  145. // clients: {
  146. // etlDB: { // 原始数据库
  147. // url: 'mongodb://faw-etl:faw-etl123@uat.dbaas.private:27028/faw-etl', // uat
  148. // options: {
  149. // useUnifiedTopology: true,
  150. // poolSize: 40,
  151. // },
  152. // },
  153. // etlLocalDB: { // 本地清洗后的数据库
  154. // url: 'mongodb://local3:local3%40123@uat.dbaas.private:27028/faw-etl-local3', // uat
  155. // options: {
  156. // useUnifiedTopology: true,
  157. // poolSize: 40,
  158. // },
  159. // },
  160. // etlAutoDB: { // 自动化测试数据库
  161. // url: 'mongodb://admin:mongo123@uat.dbaas.private:27028/faw', // uat
  162. // options: {
  163. // useUnifiedTopology: true,
  164. // poolSize: 40,
  165. // },
  166. // },
  167. // },
  168. // };
  169. //
  170. //
  171. // config.redis = {
  172. // client: {
  173. // cluster: true,
  174. // nodes: [
  175. // {
  176. // host: '10.124.8.41',
  177. // port: 16377,
  178. // family: 'tsp',
  179. // password: 'tsp2020',
  180. // db: 0,
  181. // },
  182. // {
  183. // host: '10.124.8.105',
  184. // port: 16377,
  185. // family: 'tsp',
  186. // password: 'tsp2020',
  187. // db: 0,
  188. // },
  189. // {
  190. // host: '10.124.8.75',
  191. // port: 16377,
  192. // family: 'tsp',
  193. // password: 'tsp2020',
  194. // db: 0,
  195. // },
  196. // {
  197. // host: '10.124.8.104',
  198. // port: 16377,
  199. // family: 'tsp',
  200. // password: 'tsp2020',
  201. // db: 0,
  202. // },
  203. // {
  204. // host: '10.124.8.95',
  205. // port: 16377,
  206. // family: 'tsp',
  207. // password: 'tsp2020',
  208. // db: 0,
  209. // },
  210. // {
  211. // host: '10.124.8.63',
  212. // port: 16377,
  213. // family: 'tsp',
  214. // password: 'tsp2020',
  215. // db: 0,
  216. // },
  217. // ],
  218. // },
  219. //
  220. // };
  221. return {
  222. ...config,
  223. ...userConfig,
  224. };
  225. };