proxy.js 3.93 KB
Newer Older
邓晓峰's avatar
邓晓峰 committed
1 2 3
module.exports = {
  dev: {
    '/CityInterface': {
邓晓峰's avatar
邓晓峰 committed
4
      // target: 'http://192.168.10.151:8055',
邓晓峰's avatar
邓晓峰 committed
5
      target: 'https://panda-water.cn',
邓晓峰's avatar
邓晓峰 committed
6 7
      // target: 'http://192.168.19.102:8055',

邓晓峰's avatar
邓晓峰 committed
8
      // target: 'https://panda-water.com',
邓晓峰's avatar
邓晓峰 committed
9
      // target: 'http://192.168.10.150:8050',
邓晓峰's avatar
邓晓峰 committed
10 11
      // target: 'http://192.168.19.103:8112',
      // target: 'http://192.168.12.8:8098',
邓晓峰's avatar
邓晓峰 committed
12
      // target: 'http://192.168.10.20:8888',
邓晓峰's avatar
邓晓峰 committed
13 14 15 16 17 18 19 20 21
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
      },
      pathRewrite: {
        '/CityInterface': '/CityInterface',
      },
    },
    '/cityinterface': {
邓晓峰's avatar
邓晓峰 committed
22
      // target: 'http://192.168.10.151:8055',
邓晓峰's avatar
邓晓峰 committed
23
      // target: 'http://192.168.10.150:8050',
邓晓峰's avatar
邓晓峰 committed
24
      target: 'https://panda-water.cn',
邓晓峰's avatar
邓晓峰 committed
25
      // target: 'http://192.168.19.102:8055',
邓晓峰's avatar
邓晓峰 committed
26
      // target: 'https://panda-water.com',
邓晓峰's avatar
邓晓峰 committed
27
      // target: 'http://192.168.12.8:8098',
邓晓峰's avatar
邓晓峰 committed
28
      // target: 'http://192.168.10.20:8888',
邓晓峰's avatar
邓晓峰 committed
29 30 31
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
邓晓峰's avatar
邓晓峰 committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
      },
      pathRewrite: {
        '/cityinterface': '/cityinterface',
      },
    },
    '/cityjson': {
      target: 'https://pv.sohu.com',
      // target: 'http://192.168.19.102:8055',
      // target: 'https://panda-water.com',
      // target: 'http://192.168.12.8:8098',
      // target: 'http://192.168.10.20:8888',
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
      },
      pathRewrite: {
        '/cityjson': '/cityjson',
      },
    },
    '/Publish': {
      // target: 'http://192.168.12.8:8098',
      // target: 'http://192.168.10.20:8888',
      // target: 'http://192.168.10.151:8055',
      target: 'https://panda-water.cn',
      // target: 'http://192.168.19.102:8055',
      // target: 'https://panda-water.com',
      // target: 'http://192.168.10.150:8050',
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
      },
      pathRewrite: {
        '/Publish': '/Publish',
      },
    },
  },
  prod: {
    '/CityInterface': {
      // target: 'http://192.168.10.151:8055',
      target: 'https://panda-water.cn',
      // target: 'http://192.168.19.102:8055',

      // target: 'https://panda-water.com',
      // target: 'http://192.168.10.150:8050',
      // target: 'http://192.168.19.103:8112',
      // target: 'http://192.168.12.8:8098',
      // target: 'http://192.168.10.20:8888',
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
      },
      pathRewrite: {
        '/CityInterface': '/CityInterface',
      },
    },
    '/cityinterface': {
      // target: 'http://192.168.10.151:8055',
      // target: 'http://192.168.10.150:8050',
      target: 'https://panda-water.cn',
      // target: 'http://192.168.19.102:8055',
      // target: 'https://panda-water.com',
      // target: 'http://192.168.12.8:8098',
      // target: 'http://192.168.10.20:8888',
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
邓晓峰's avatar
邓晓峰 committed
98 99 100 101 102
      },
      pathRewrite: {
        '/cityinterface': '/cityinterface',
      },
    },
邓晓峰's avatar
邓晓峰 committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116
    '/cityjson': {
      target: 'https://pv.sohu.com',
      // target: 'http://192.168.19.102:8055',
      // target: 'https://panda-water.com',
      // target: 'http://192.168.12.8:8098',
      // target: 'http://192.168.10.20:8888',
      changeOrigin: true,
      headers: {
        'Access-Control-Allow-Origin': '*',
      },
      pathRewrite: {
        '/cityjson': '/cityjson',
      },
    },
邓晓峰's avatar
邓晓峰 committed
117 118
    '/Publish': {
      // target: 'http://192.168.12.8:8098',
邓晓峰's avatar
邓晓峰 committed
119
      // target: 'http://192.168.10.20:8888',
邓晓峰's avatar
邓晓峰 committed
120
      // target: 'http://192.168.10.151:8055',
邓晓峰's avatar
邓晓峰 committed
121
      target: 'https://panda-water.cn',
邓晓峰's avatar
邓晓峰 committed
122
      // target: 'http://192.168.19.102:8055',
邓晓峰's avatar
邓晓峰 committed
123
      // target: 'https://panda-water.com',
邓晓峰's avatar
邓晓峰 committed
124
      // target: 'http://192.168.10.150:8050',
邓晓峰's avatar
邓晓峰 committed
125 126
      changeOrigin: true,
      headers: {
127
        'Access-Control-Allow-Origin': '*',
邓晓峰's avatar
邓晓峰 committed
128 129
      },
      pathRewrite: {
130
        '/Publish': '/Publish',
邓晓峰's avatar
邓晓峰 committed
131
      },
132
    },
邓晓峰's avatar
邓晓峰 committed
133 134
  },
};