13693261870
2023-06-21 cdf12fc9e88b1af69f5c85165eb9fef4e23bf57a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const proxy = require('http-proxy-middleware');
 
module.exports = function (app) {
  app.use(proxy('/easy-data/', {
    target: 'http://221.123.163.232', // 36.112.235.71,221.123.163.232 < 10.241.242.79
    secure: false,
    changeOrigin: true,
    pathRewrite: {
      '^/easy-data/': '/easy-data/'
    }
  }));
 
  app.use(proxy('/monet/studio/api', {
    target: 'http://localhost:8888',
    secure: false,
    changeOrigin: true,
    headers: {
      Host: '',
      Connection: 'keep-alive'
    },
    pathRewrite: {
      '^/monet/studio/api': '/monet/studio/api'
    }
  }));
};