proxy-dev.js 875 B

12345678910111213141516171819202122232425
  1. 'use strict'
  2. // 跨域请求设置,可配置多个
  3. module.exports = {
  4. table: {
  5. '/': {
  6. //target: 'http://101.133.214.75:81/api',
  7. //target: 'http://101.133.214.75',
  8. // target: 'http://172.200.50.17:8083',
  9. //target: 'http://120.55.70.156/api',
  10. target: 'http://172.16.120.104:8083', //本地
  11. //target: 'http://32.0.15.107:8080/api/', //闵行
  12. //target: 'http://172.200.50.85:8080/api/', //闵行杨强
  13. ws: true, // 代理websockets
  14. changeOrigin: true,
  15. pathRewrite: { '': '/' } // '^/api' 是一个正则表达式,作用:将 /api 提换成为 /
  16. },
  17. },
  18. // 本地配置ip访问(手机可通过IP访问),需要修改成本地Ip地址
  19. // localhost: '172.200.50.18',
  20. localhost: '172.16.120.200',
  21. port: '3000',
  22. }