123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303 |
- /**
- * Info: 14(测试)、18(研发测试)、39(项目组)
- */
- module.exports = {
- "18": {
- "/admin": {
- target: "http://mbi.sagacloud.cn:8080/",
- changeOrigin: true,
- pathRewrite: {
- "^/admin": "/"
- }
- },
- "/persagy-sso-server": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/persagy-sso-server": "/persagy-sso-server/"
- }
- },
- "/datacenter": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/datacenter": "/datacenter/"
- }
- },
- "/equip-component": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/equip-component": "/equip-component/"
- }
- },
- "/message-center": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/message-center": "/message-center/"
- }
- },
- "/datasyn": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/datasyn": "/datasyn/"
- }
- },
- "/revit-algorithm": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/revit-algorithm": "/revit-algorithm/"
- }
- },
- "/scheduler": {
- target: "http://192.168.64.17:28888/",
- changeOrigin: true,
- pathRewrite: {
- "^/scheduler": "/scheduler/"
- }
- },
- "/scanbuilding": {
- // 目标 API 地址
- target: "http://192.168.64.17:28888",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/rwd": {
- // 目标 API 地址
- target: "http://82.157.151.123:9970/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/pointconfig": {
- // 目标 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,
- pathRewrite: {
- "^/image-service": "/image-service/"
- }
- }
- },
- "14": {
- "/admin": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/admin": "/"
- }
- },
- "/datacenter": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/datacenter": "/datacenter/"
- }
- },
- "/equip-component": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/equip-component": "/equip-component/"
- }
- },
- "/message-center": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/message-center": "/message-center/"
- }
- },
- "/datasyn": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/datasyn": "/datasyn/"
- }
- },
- "/revit-algorithm": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/revit-algorithm": "/revit-algorithm/"
- }
- },
- "/scheduler": {
- target: "http://adm/",
- changeOrigin: true,
- pathRewrite: {
- "^/scheduler": "/scheduler/"
- }
- },
- "/scanbuilding": {
- // 目标 API 地址
- target: "http://adm/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/rwd": {
- // 目标 API 地址
- target: "http://adm/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/pointconfig": {
- // 目标 API 地址
- target: "http://mbi.sagacloud.cn:8080/",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/image-service": {
- // 目标 API 地址
- target: "http://adm/",
- // 将主机标头的原点更改为目标URL
- changeOrigin: false,
- pathRewrite: {
- "^/image-service": "/image-service/"
- }
- }
- },
- "39": {
- "/admin": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/admin": "/"
- }
- },
- "/persagy-sso-server": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/persagy-sso-server": "/persagy-sso-server"
- }
- },
- "/datacenter": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/datacenter": "/datacenter"
- }
- },
- "/equip-component": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/equip-component": "/equip-component"
- }
- },
- "/message-center": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/message-center": "/message-center"
- }
- },
- "/datasyn": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/datasyn": "/datasyn"
- }
- },
- "/revit-algorithm": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/revit-algorithm": "/revit-algorithm"
- }
- },
- "/scheduler": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/scheduler": "/scheduler"
- }
- },
- "/scanbuilding": {
- // 目标 API 地址
- target: "http://82.157.151.123",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/rwd": {
- // 目标 API 地址
- target: "http://develop.ysbdtp.com",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/pointconfig": {
- // 目标 API 地址
- target: "http://develop.ysbdtp.com",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false
- },
- "/image-service": {
- // 目标 API 地址
- target: "http://develop.ysbdtp.com",
- // 如果要代理 websockets
- ws: true,
- // 将主机标头的原点更改为目标URL
- changeOrigin: false,
- // pathRewrite: {
- // "^/image-service": "/image-service/"
- // }
- },
- // "/login-service": {
- // target: "http://develop.persagy.com/",
- // changeOrigin: true,
- // pathRewrite: {
- // "^/login-service": "/EMS_SaaS_Web/Spring/MVC/entrance/unifier/loginUserService"
- // }
- // },
- // "/getUserById": {
- // target: "http://develop.persagy.com/",
- // changeOrigin: true,
- // pathRewrite: {
- // "^/getUserById": "/EMS_SaaS_Web/Spring/MVC/entrance/unifier/getPersonByUserIdService"
- // }
- // },
- "/login-service": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/login-service": "/login-service"
- }
- },
- "/getUserById": {
- target: "http://develop.ysbdtp.com",
- changeOrigin: true,
- pathRewrite: {
- "^/getUserById": "/getUserById"
- }
- },
- },
- };
|