conf.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /**
  2. * Info: 14(测试)、18(研发测试)、39(项目组)
  3. */
  4. module.exports = {
  5. "18": {
  6. "/admin": {
  7. target: "http://mbi.sagacloud.cn:8080/",
  8. changeOrigin: true,
  9. pathRewrite: {
  10. "^/admin": "/"
  11. }
  12. },
  13. "/persagy-sso-server": {
  14. target: "http://192.168.64.17:28888/",
  15. changeOrigin: true,
  16. pathRewrite: {
  17. "^/persagy-sso-server": "/persagy-sso-server/"
  18. }
  19. },
  20. "/datacenter": {
  21. target: "http://192.168.64.17:28888/",
  22. changeOrigin: true,
  23. pathRewrite: {
  24. "^/datacenter": "/datacenter/"
  25. }
  26. },
  27. "/equip-component": {
  28. target: "http://192.168.64.17:28888/",
  29. changeOrigin: true,
  30. pathRewrite: {
  31. "^/equip-component": "/equip-component/"
  32. }
  33. },
  34. "/message-center": {
  35. target: "http://192.168.64.17:28888/",
  36. changeOrigin: true,
  37. pathRewrite: {
  38. "^/message-center": "/message-center/"
  39. }
  40. },
  41. "/datasyn": {
  42. target: "http://192.168.64.17:28888/",
  43. changeOrigin: true,
  44. pathRewrite: {
  45. "^/datasyn": "/datasyn/"
  46. }
  47. },
  48. "/revit-algorithm": {
  49. target: "http://192.168.64.17:28888/",
  50. changeOrigin: true,
  51. pathRewrite: {
  52. "^/revit-algorithm": "/revit-algorithm/"
  53. }
  54. },
  55. "/scheduler": {
  56. target: "http://192.168.64.17:28888/",
  57. changeOrigin: true,
  58. pathRewrite: {
  59. "^/scheduler": "/scheduler/"
  60. }
  61. },
  62. "/scanbuilding": {
  63. // 目标 API 地址
  64. target: "http://192.168.64.17:28888",
  65. // 如果要代理 websockets
  66. ws: true,
  67. // 将主机标头的原点更改为目标URL
  68. changeOrigin: false
  69. },
  70. "/rwd": {
  71. // 目标 API 地址
  72. target: "http://82.157.151.123:9970/",
  73. // 如果要代理 websockets
  74. ws: true,
  75. // 将主机标头的原点更改为目标URL
  76. changeOrigin: false
  77. },
  78. "/pointconfig": {
  79. // 目标 API 地址
  80. target: "http://mbi.sagacloud.cn:8080/",
  81. // 如果要代理 websockets
  82. ws: true,
  83. // 将主机标头的原点更改为目标URL
  84. changeOrigin: false
  85. },
  86. "/image-service": {
  87. // 目标 API 地址
  88. target: "http://39.97.179.199:8891",
  89. // 如果要代理 websockets
  90. ws: true,
  91. // 将主机标头的原点更改为目标URL
  92. changeOrigin: false,
  93. pathRewrite: {
  94. "^/image-service": "/image-service/"
  95. }
  96. }
  97. },
  98. "14": {
  99. "/admin": {
  100. target: "http://adm/",
  101. changeOrigin: true,
  102. pathRewrite: {
  103. "^/admin": "/"
  104. }
  105. },
  106. "/datacenter": {
  107. target: "http://adm/",
  108. changeOrigin: true,
  109. pathRewrite: {
  110. "^/datacenter": "/datacenter/"
  111. }
  112. },
  113. "/equip-component": {
  114. target: "http://adm/",
  115. changeOrigin: true,
  116. pathRewrite: {
  117. "^/equip-component": "/equip-component/"
  118. }
  119. },
  120. "/message-center": {
  121. target: "http://adm/",
  122. changeOrigin: true,
  123. pathRewrite: {
  124. "^/message-center": "/message-center/"
  125. }
  126. },
  127. "/datasyn": {
  128. target: "http://adm/",
  129. changeOrigin: true,
  130. pathRewrite: {
  131. "^/datasyn": "/datasyn/"
  132. }
  133. },
  134. "/revit-algorithm": {
  135. target: "http://adm/",
  136. changeOrigin: true,
  137. pathRewrite: {
  138. "^/revit-algorithm": "/revit-algorithm/"
  139. }
  140. },
  141. "/scheduler": {
  142. target: "http://adm/",
  143. changeOrigin: true,
  144. pathRewrite: {
  145. "^/scheduler": "/scheduler/"
  146. }
  147. },
  148. "/scanbuilding": {
  149. // 目标 API 地址
  150. target: "http://adm/",
  151. // 如果要代理 websockets
  152. ws: true,
  153. // 将主机标头的原点更改为目标URL
  154. changeOrigin: false
  155. },
  156. "/rwd": {
  157. // 目标 API 地址
  158. target: "http://adm/",
  159. // 如果要代理 websockets
  160. ws: true,
  161. // 将主机标头的原点更改为目标URL
  162. changeOrigin: false
  163. },
  164. "/pointconfig": {
  165. // 目标 API 地址
  166. target: "http://mbi.sagacloud.cn:8080/",
  167. // 如果要代理 websockets
  168. ws: true,
  169. // 将主机标头的原点更改为目标URL
  170. changeOrigin: false
  171. },
  172. "/image-service": {
  173. // 目标 API 地址
  174. target: "http://adm/",
  175. // 将主机标头的原点更改为目标URL
  176. changeOrigin: false,
  177. pathRewrite: {
  178. "^/image-service": "/image-service/"
  179. }
  180. }
  181. },
  182. "39": {
  183. "/admin": {
  184. target: "http://develop.ysbdtp.com",
  185. changeOrigin: true,
  186. pathRewrite: {
  187. "^/admin": "/"
  188. }
  189. },
  190. "/persagy-sso-server": {
  191. target: "http://develop.ysbdtp.com",
  192. changeOrigin: true,
  193. pathRewrite: {
  194. "^/persagy-sso-server": "/persagy-sso-server"
  195. }
  196. },
  197. "/datacenter": {
  198. target: "http://develop.ysbdtp.com",
  199. changeOrigin: true,
  200. pathRewrite: {
  201. "^/datacenter": "/datacenter"
  202. }
  203. },
  204. "/equip-component": {
  205. target: "http://develop.ysbdtp.com",
  206. changeOrigin: true,
  207. pathRewrite: {
  208. "^/equip-component": "/equip-component"
  209. }
  210. },
  211. "/message-center": {
  212. target: "http://develop.ysbdtp.com",
  213. changeOrigin: true,
  214. pathRewrite: {
  215. "^/message-center": "/message-center"
  216. }
  217. },
  218. "/datasyn": {
  219. target: "http://develop.ysbdtp.com",
  220. changeOrigin: true,
  221. pathRewrite: {
  222. "^/datasyn": "/datasyn"
  223. }
  224. },
  225. "/data": {
  226. target: "http://develop.ysbdtp.com",
  227. changeOrigin: true,
  228. pathRewrite: {
  229. "^/data": "/data"
  230. }
  231. },
  232. "/revit-algorithm": {
  233. target: "http://develop.ysbdtp.com",
  234. changeOrigin: true,
  235. pathRewrite: {
  236. "^/revit-algorithm": "/revit-algorithm"
  237. }
  238. },
  239. "/scheduler": {
  240. target: "http://develop.ysbdtp.com",
  241. changeOrigin: true,
  242. pathRewrite: {
  243. "^/scheduler": "/scheduler"
  244. }
  245. },
  246. "/scanbuilding": {
  247. // 目标 API 地址
  248. target: "http://82.157.151.123",
  249. // 如果要代理 websockets
  250. ws: true,
  251. // 将主机标头的原点更改为目标URL
  252. changeOrigin: false
  253. },
  254. "/rwd": {
  255. // 目标 API 地址
  256. target: "http://develop.ysbdtp.com",
  257. // 如果要代理 websockets
  258. ws: true,
  259. // 将主机标头的原点更改为目标URL
  260. changeOrigin: false
  261. },
  262. "/pointconfig": {
  263. // 目标 API 地址
  264. target: "http://develop.ysbdtp.com",
  265. // 如果要代理 websockets
  266. ws: true,
  267. // 将主机标头的原点更改为目标URL
  268. changeOrigin: false
  269. },
  270. "/image-service": {
  271. // 目标 API 地址
  272. target: "http://develop.ysbdtp.com",
  273. // 如果要代理 websockets
  274. ws: true,
  275. // 将主机标头的原点更改为目标URL
  276. changeOrigin: false,
  277. // pathRewrite: {
  278. // "^/image-service": "/image-service/"
  279. // }
  280. },
  281. // "/login-service": {
  282. // target: "http://develop.persagy.com/",
  283. // changeOrigin: true,
  284. // pathRewrite: {
  285. // "^/login-service": "/EMS_SaaS_Web/Spring/MVC/entrance/unifier/loginUserService"
  286. // }
  287. // },
  288. // "/getUserById": {
  289. // target: "http://develop.persagy.com/",
  290. // changeOrigin: true,
  291. // pathRewrite: {
  292. // "^/getUserById": "/EMS_SaaS_Web/Spring/MVC/entrance/unifier/getPersonByUserIdService"
  293. // }
  294. // },
  295. "/login-service": {
  296. target: "http://develop.ysbdtp.com",
  297. changeOrigin: true,
  298. pathRewrite: {
  299. "^/login-service": "/login-service"
  300. }
  301. },
  302. "/getUserById": {
  303. target: "http://develop.ysbdtp.com",
  304. changeOrigin: true,
  305. pathRewrite: {
  306. "^/getUserById": "/getUserById"
  307. }
  308. },
  309. },
  310. };