proxy.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * @Author: code4eat awesomedema@gmail.com
  3. * @Date: 2024-04-09 18:07:34
  4. * @LastEditors: code4eat awesomedema@gmail.com
  5. * @LastEditTime: 2024-12-19 10:48:03
  6. * @FilePath: /KC-MiddlePlatform/config/proxy.ts
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. const proxy: { [key: string]: any } = {
  10. dev: {
  11. '/gateway': {
  12. //target: 'http://47.96.149.190:5000',
  13. target: 'http://120.27.235.181:5000',
  14. // target: 'http://platform.pre.bs.qjczt.com:5000',
  15. changeOrigin: true,
  16. // pathRewrite: { '^/master': '' },
  17. },
  18. '/api': {
  19. target: 'http://120.27.235.181:8083/',
  20. changeOrigin: true,
  21. pathRewrite: { '^/api': '' },
  22. },
  23. '/view': {
  24. target: 'http://120.27.235.181:8085/',
  25. changeOrigin: true,
  26. // pathRewrite: { '^/view': '' },
  27. },
  28. },
  29. mock: {
  30. '/master/': {
  31. target: 'http://localhost:8000',
  32. changeOrigin: true,
  33. pathRewrite: { '^': '' },
  34. },
  35. },
  36. };
  37. export default proxy;