Browse Source

默认连接的服务配置改为开发环境

niuheng 3 years ago
parent
commit
39ebc30dfc
1 changed files with 42 additions and 28 deletions
  1. 42 28
      config/conf.js

+ 42 - 28
config/conf.js

@@ -69,7 +69,7 @@ module.exports = {
     },
     "/rwd": {
       // 目标 API 地址
-      target: "http://39.102.40.239:9970/",
+      target: "http://82.157.151.123:9970/",
       // 如果要代理 websockets
       ws: true,
       // 将主机标头的原点更改为目标URL
@@ -181,64 +181,64 @@ module.exports = {
   },
   "39": {
     "/admin": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
         "^/admin": "/"
       }
     },
     "/persagy-sso-server": {
-        target: "http://39.102.40.239:28888/",
+        target: "http://develop.ysbdtp.com",
         changeOrigin: true,
         pathRewrite: {
-          "^/persagy-sso-server": "/persagy-sso-server/"
+          "^/persagy-sso-server": "/persagy-sso-server"
         }
     },
     "/datacenter": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/datacenter": "/datacenter/"
+        "^/datacenter": "/datacenter"
       }
     },
     "/equip-component": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/equip-component": "/equip-component/"
+        "^/equip-component": "/equip-component"
       }
     },
     "/message-center": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/message-center": "/message-center/"
+        "^/message-center": "/message-center"
       }
     },
     "/datasyn": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/datasyn": "/datasyn/"
+        "^/datasyn": "/datasyn"
       }
     },
     "/revit-algorithm": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/revit-algorithm": "/revit-algorithm/"
+        "^/revit-algorithm": "/revit-algorithm"
       }
     },
     "/scheduler": {
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/scheduler": "/scheduler/"
+        "^/scheduler": "/scheduler"
       }
     },
     "/scanbuilding": {
       // 目标 API 地址
-      target: "http://39.102.40.239:28888",
+      target: "http://82.157.151.123",
       // 如果要代理 websockets
       ws: true,
       // 将主机标头的原点更改为目标URL
@@ -246,7 +246,7 @@ module.exports = {
     },
     "/rwd": {
       // 目标 API 地址
-      target: "http://39.102.40.239:9970/",
+      target: "http://develop.ysbdtp.com",
       // 如果要代理 websockets
       ws: true,
       // 将主机标头的原点更改为目标URL
@@ -254,7 +254,7 @@ module.exports = {
     },
     "/pointconfig": {
       // 目标 API 地址
-      target: "http://39.102.40.239:28888/",
+      target: "http://develop.ysbdtp.com",
       // 如果要代理 websockets
       ws: true,
       // 将主机标头的原点更改为目标URL
@@ -262,27 +262,41 @@ module.exports = {
     },
     "/image-service": {
       // 目标 API 地址
-      target: "http://39.97.179.199:8891",
+      target: "http://develop.ysbdtp.com",
       // 如果要代理 websockets
       ws: true,
       // 将主机标头的原点更改为目标URL
       changeOrigin: false,
-      pathRewrite: {
-        "^/image-service": "/image-service/"
-      }
-    },
+      // 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.persagy.com/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/login-service": "/EMS_SaaS_Web/Spring/MVC/entrance/unifier/loginUserService"
+        "^/login-service": "/login-service"
       }
     },
     "/getUserById": {
-      target: "http://develop.persagy.com/",
+      target: "http://develop.ysbdtp.com",
       changeOrigin: true,
       pathRewrite: {
-        "^/getUserById": "/EMS_SaaS_Web/Spring/MVC/entrance/unifier/getPersonByUserIdService"
+        "^/getUserById": "/getUserById"
       }
     },
   },