/* * @Author: your name * @Date: 2022-01-07 10:00:52 * @LastEditTime: 2023-01-10 17:15:06 * @LastEditors: code4eat awesomedema@gmail.com * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /KC-MiddlePlatform/config/proxy.ts */ //118.31.245.65 7004 线上 //112.124.59.133 7001 测试 //192.168.50.190:7001 const proxy: { [key: string]: any } = { dev: { '/gateway': { target: 'http://112.124.59.133:5000', //target: 'http://118.31.245.65:7005/', changeOrigin: true, // pathRewrite: { '^/gateway': '' }, }, '/api': { //target: 'http://118.31.245.65:8083/', //target: 'http://112.124.59.133:8083/', target: 'http://112.124.59.133:5000/', changeOrigin: true, pathRewrite: { '^/api': '' }, }, '/view': { target: 'http://118.31.245.65:8085/', //target: 'http://112.124.59.133:8083/', changeOrigin: true, pathRewrite: { '^/view': '' }, }, }, mock: { '/master/': { target: 'http://localhost:8000', changeOrigin: true, pathRewrite: { '^': '' }, }, }, }; export default proxy;