conf.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /**
  2. * Info: formal、14(测试)、18(研发测试)
  3. */
  4. module.exports = {
  5. "18": {},
  6. "14": {
  7. "/admin": {
  8. target: "http://192.168.64.14:8080/",
  9. changeOrigin: true,
  10. pathRewrite: {
  11. "^/admin": "/"
  12. }
  13. },
  14. "/api": {
  15. target: "http://192.168.64.14:8080/",
  16. changeOrigin: true,
  17. pathRewrite: {
  18. "^/api": "/"
  19. }
  20. },
  21. "/data-platform-3": {
  22. // 目标 API 地址
  23. target: "http://39.97.179.199:9909/",
  24. // 如果要代理 websockets
  25. ws: true,
  26. // 将主机标头的原点更改为目标URL
  27. changeOrigin: false
  28. },
  29. "/business-space": {
  30. // 目标 API 地址
  31. target: "http://39.97.179.199:9909",
  32. changeOrigin: true
  33. },
  34. "/pointconfig": {
  35. // 目标 API 地址
  36. target: " http://192.168.64.14:8080/",
  37. // 如果要代理 websockets
  38. ws: true,
  39. // 将主机标头的原点更改为目标URL
  40. changeOrigin: false
  41. },
  42. "/venders-dp": {
  43. // 目标 API 地址
  44. target: "http://39.97.179.199:9909",
  45. changeOrigin: true
  46. // pathRewrite: {
  47. // "^/venders-dp": "/dp-auxiliary/venders-dp/"
  48. // }
  49. },
  50. "/venders": {
  51. // 目标 API 地址
  52. target: "http://39.97.179.199:9909",
  53. changeOrigin: true
  54. // pathRewrite: {
  55. // "^/venders": "/dp-auxiliary/venders/"
  56. // }
  57. },
  58. "/ScanBuilding": {
  59. // 目标 API 地址
  60. target: " http://192.168.64.14:8080/",
  61. // 如果要代理 websockets
  62. ws: true,
  63. // 将主机标头的原点更改为目标URL
  64. changeOrigin: false
  65. },
  66. "/scanbuilding-2": {
  67. // 目标 API 地址
  68. target: " http://192.168.64.14:8080/",
  69. // 如果要代理 websockets
  70. ws: true,
  71. // 将主机标头的原点更改为目标URL
  72. changeOrigin: false
  73. },
  74. "/image-service": {
  75. // 目标 API 地址
  76. target: "http://39.97.179.199:8891",
  77. changeOrigin: true,
  78. pathRewrite: {
  79. "^/image-service": "/image-service/"
  80. }
  81. },
  82. "/modelapi": {
  83. target: " http://192.168.64.14:8080/",
  84. changeOrigin: true,
  85. pathRewrite: {
  86. "^/modelapi": "/revit-algorithm/"
  87. }
  88. },
  89. "/schedulerapi": {
  90. target: " http://192.168.64.14:8080/",
  91. changeOrigin: true,
  92. pathRewrite: {
  93. "^/schedulerapi": "/scheduler/"
  94. }
  95. }
  96. },
  97. formal: {
  98. "/admin": {
  99. target: "http://mbi.sagacloud.cn:8080/",
  100. changeOrigin: true,
  101. pathRewrite: {
  102. "^/admin": "/"
  103. }
  104. },
  105. "/api": {
  106. target: "http://mbi.sagacloud.cn:8080/",
  107. changeOrigin: true,
  108. pathRewrite: {
  109. "^/api": "/"
  110. }
  111. },
  112. "/modelapi": {
  113. target: "http://mbi.sagacloud.cn:8080/",
  114. changeOrigin: true,
  115. pathRewrite: {
  116. "^/modelapi": "/"
  117. }
  118. },
  119. "/schedulerapi": {
  120. target: "http://mbi.sagacloud.cn:8080/",
  121. changeOrigin: true,
  122. pathRewrite: {
  123. "^/schedulerapi": "/"
  124. }
  125. },
  126. "/data-platform-3": {
  127. // 目标 API 地址
  128. target: "http://39.97.179.199:9909/",
  129. // 如果要代理 websockets
  130. ws: true,
  131. // 将主机标头的原点更改为目标URL
  132. changeOrigin: false
  133. },
  134. "/business-space": {
  135. // 目标 API 地址
  136. target: "http://39.97.179.199:9909",
  137. // 如果要代理 websockets
  138. ws: true,
  139. // 将主机标头的原点更改为目标URL
  140. changeOrigin: false
  141. },
  142. "/pointconfig": {
  143. // 目标 API 地址
  144. target: "http://mbi.sagacloud.cn:8080/",
  145. // 如果要代理 websockets
  146. ws: true,
  147. // 将主机标头的原点更改为目标URL
  148. changeOrigin: false
  149. },
  150. "/venders-dp": {
  151. // 目标 API 地址
  152. target: "http://39.97.179.199:9909",
  153. // 如果要代理 websockets
  154. ws: true,
  155. // 将主机标头的原点更改为目标URL
  156. changeOrigin: false
  157. },
  158. "/venders": {
  159. // 目标 API 地址
  160. target: "http://39.97.179.199:9909",
  161. // 如果要代理 websockets
  162. ws: true,
  163. // 将主机标头的原点更改为目标URL
  164. changeOrigin: false
  165. },
  166. "/ScanBuilding": {
  167. // 目标 API 地址
  168. target: "http://mbi.sagacloud.cn:8080/",
  169. // 如果要代理 websockets
  170. ws: true,
  171. // 将主机标头的原点更改为目标URL
  172. changeOrigin: false
  173. },
  174. "/scanbuilding-2": {
  175. // 目标 API 地址
  176. target: "http://mbi.sagacloud.cn:8080/",
  177. // 如果要代理 websockets
  178. ws: true,
  179. // 将主机标头的原点更改为目标URL
  180. changeOrigin: false
  181. },
  182. "/image-service": {
  183. // 目标 API 地址
  184. target: "http://39.97.179.199:8891",
  185. // 如果要代理 websockets
  186. ws: true,
  187. // 将主机标头的原点更改为目标URL
  188. changeOrigin: false
  189. }
  190. }
  191. };