1
13693261870
2023-06-28 b0491e7b550c196deb83a6870a0e6344763894f4
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://10.241.242.79', // 36.112.235.71,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'
    }
  }));
};