Browse Source

'修改代理为线上地址'

zhangyu 4 years ago
parent
commit
2bc721b503
2 changed files with 17 additions and 17 deletions
  1. 6 6
      config/dev.env.js
  2. 11 11
      config/index.js

+ 6 - 6
config/dev.env.js

@@ -4,14 +4,14 @@ const prodEnv = require('./prod.env')
 
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
-  BASE_URL: '"http://172.16.44.215"', //测试iframe地址
-  SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
+  // BASE_URL: '"http://172.16.44.215"', //测试iframe地址
+  // SSO_SERVER: '"http://172.16.44.235:8081"', //测试环境
   // BASE_URL: '"http://192.168.20.236"', //(新)测试iframe地址
   // SSO_SERVER: '"http://192.168.20.236:8086"', //(新)测试环境
-  MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
-  // SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
-  // BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
- // MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
+  // MQTT_SERVICE: '"ws://172.16.42.210:61614/stomp/"' //MQ测试环境地址
+  SSO_SERVER: '"http://sso.sagacloud.cn"',  //正式环境
+  BASE_URL: '"http://mbi.sagacloud.cn"', //线上iframe地址
+  MQTT_SERVICE: '"ws://adm.sagacloud.cn/stomp/"' //MQ正式环境地址
 })
 
 

+ 11 - 11
config/index.js

@@ -202,7 +202,7 @@ module.exports = {
     // },
     proxyTable: { // 新版数据字典
       '/admin': {
-        target: 'http://172.16.44.235:8080',
+        target: 'http://mbi.sagacloud.cn:8080',
         changeOrigin: true,
         pathRewrite: {
           "^/admin": "/"
@@ -217,7 +217,7 @@ module.exports = {
       },
       '/data-platform-3': {
         // 目标 API 地址
-        target: 'http://172.16.42.210:8080/',
+        target: 'http://api.sagacloud.cn/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -225,7 +225,7 @@ module.exports = {
       },
       '/business-space': {
         // 目标 API 地址
-        target: 'http://172.16.42.210:8080/',
+        target: 'http://api.sagacloud.cn/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -233,7 +233,7 @@ module.exports = {
       },
       '/pointconfig': {
         // 目标 API 地址
-        target: 'http://172.16.44.235:8080/',
+        target: 'http://mbi.sagacloud.cn:8080/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -241,7 +241,7 @@ module.exports = {
       },
       '/venders-dp': {
         // 目标 API 地址
-        target: 'http://172.16.42.210:8080/',
+        target: 'http://api.sagacloud.cn/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -249,7 +249,7 @@ module.exports = {
       },
       '/venders': {
         // 目标 API 地址
-        target: 'http://172.16.42.210:8080/',
+        target: 'http://api.sagacloud.cn/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -257,7 +257,7 @@ module.exports = {
       },
       '/ScanBuilding': {
         // 目标 API 地址
-        target: 'http://172.16.44.235:8080/',
+        target: 'http://mbi.sagacloud.cn:8080/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -265,7 +265,7 @@ module.exports = {
       },
       '/scanbuilding-2': {
         // 目标 API 地址
-        target: 'http://172.16.44.235:8080/',
+        target: 'http://mbi.sagacloud.cn:8080/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
@@ -273,14 +273,14 @@ module.exports = {
       },
       '/image-service': {
         // 目标 API 地址
-        target: 'http://172.16.42.210:8080/',
+        target: 'http://api.sagacloud.cn/',
         // 如果要代理 websockets
         ws: true,
         // 将主机标头的原点更改为目标URL
         changeOrigin: false
       },
       '/modelapi': {
-        target: 'http://172.16.42.210:8082',
+        target: 'http://mbi.sagacloud.cn:8080',
         // target: 'http://192.168.20.218:8082',//景灏
         changeOrigin: true,
         pathRewrite: {
@@ -288,7 +288,7 @@ module.exports = {
         }
       },
       '/schedulerapi': {
-        target: 'http://172.16.42.210:8081',
+        target: 'http://mbi.sagacloud.cn:8080',
         changeOrigin: true,
         pathRewrite: {
           "^/schedulerapi": "/"