123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- /**
- * Info: formal、14(测试)、18(研发测试)
- */
- module.exports = {
- "18": {},
- "14": {
- "/admin": {
- target: "http://192.168.64.14:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/admin": "/"
- }
- },
- "/api": {
- target: "http://192.168.64.14:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/api": "/"
- }
- },
- "/data-platform-3": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/business-space": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909",
- changeOrigin: true
- },
- "/pointconfig": {
- // 目标 API 地址
- target: " http://192.168.64.14:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/venders-dp": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909",
- changeOrigin: true
- // pathRewrite: {
- // "^/venders-dp": "/dp-auxiliary/venders-dp/"
- // }
- },
- "/venders": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909",
- changeOrigin: true
- // pathRewrite: {
- // "^/venders": "/dp-auxiliary/venders/"
- // }
- },
- "/ScanBuilding": {
- // 目标 API 地址
- target: " http://192.168.64.14:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/scanbuilding-2": {
- // 目标 API 地址
- target: " http://192.168.64.14:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/image-service": {
- // 目标 API 地址
- target: "http://39.97.179.199:8891",
- changeOrigin: true,
- pathRewrite: {
- "^/image-service": "/image-service/"
- }
- },
- "/modelapi": {
- target: " http://192.168.64.14:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/modelapi": "/revit-algorithm/"
- }
- },
- "/schedulerapi": {
- target: " http://192.168.64.14:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/schedulerapi": "/scheduler/"
- }
- }
- },
- formal: {
- "/admin": {
- target: "http://mbi.sagacloud.cn:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/admin": "/"
- }
- },
- "/api": {
- target: "http://mbi.sagacloud.cn:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/api": "/"
- }
- },
- "/modelapi": {
- target: "http://mbi.sagacloud.cn:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/modelapi": "/"
- }
- },
- "/schedulerapi": {
- target: "http://mbi.sagacloud.cn:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/schedulerapi": "/"
- }
- },
- "/data-platform-3": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/business-space": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/pointconfig": {
- // 目标 API 地址
- target: "http://mbi.sagacloud.cn:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/venders-dp": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/venders": {
- // 目标 API 地址
- target: "http://39.97.179.199:9909",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/ScanBuilding": {
- // 目标 API 地址
- target: "http://mbi.sagacloud.cn:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/scanbuilding-2": {
- // 目标 API 地址
- target: "http://mbi.sagacloud.cn:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/image-service": {
- // 目标 API 地址
- target: "http://39.97.179.199:8891",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- }
- }
- };
|