spring-cloud/admin-web/config/proxy/proxy.prod.js

40 lines
853 B
Java
Raw Normal View History

2019-03-10 08:40:16 +00:00
// production 配置文件
2019-05-08 16:10:44 +00:00
module.exports = {
2020-04-26 11:52:14 +00:00
'/system-api/': {
target: 'http://api.shop.iocoder.cn',
2019-03-10 08:40:16 +00:00
changeOrigin: true,
2019-04-09 13:08:20 +00:00
pathRewrite: {},
},
'/product-api/': {
target: 'http://api.shop.iocoder.cn',
changeOrigin: true,
pathRewrite: {},
},
2019-04-09 13:08:20 +00:00
'/order-api/': {
target: 'http://api.shop.iocoder.cn',
2019-04-09 13:08:20 +00:00
changeOrigin: true,
pathRewrite: {},
},
'/promotion-api/': {
target: 'http://api.shop.iocoder.cn',
changeOrigin: true,
pathRewrite: {},
},
2019-04-09 13:08:20 +00:00
'/pay-api/': {
target: 'http://api.shop.iocoder.cn',
2019-04-09 13:08:20 +00:00
changeOrigin: true,
pathRewrite: {},
},
'/user-api/': {
target: 'http://api.shop.iocoder.cn',
2019-04-09 13:08:20 +00:00
changeOrigin: true,
pathRewrite: {},
2019-03-10 08:40:16 +00:00
},
'/server/api/': {
target: 'https://preview.pro.ant.design/',
changeOrigin: true,
pathRewrite: { '^/server': '' },
},
};