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

41 lines
990 B
Java
Raw Normal View History

2019-03-10 08:40:16 +00:00
// 开发环境,的代理配置
2019-05-08 16:10:44 +00:00
module.exports = {
2019-03-10 08:40:16 +00:00
'/admin-api/': {
target: 'http://127.0.0.1:18083/',
// target: 'http://180.167.213.26:18083/',
2019-03-10 08:40:16 +00:00
changeOrigin: true,
pathRewrite: {},
},
'/product-api/': {
// target: 'http://180.167.213.26:18083/',
target: 'http://127.0.0.1:18081/',
changeOrigin: true,
pathRewrite: {},
},
2019-03-24 08:55:52 +00:00
'/order-api/': {
// target: 'http://180.167.213.26:18084/',
2019-04-09 13:08:20 +00:00
target: 'http://127.0.0.1:18088/',
2019-03-10 08:40:16 +00:00
changeOrigin: true,
2019-03-24 08:55:52 +00:00
pathRewrite: {},
2019-03-10 08:40:16 +00:00
},
'/promotion-api/': {
// target: 'http://180.167.213.26:18085/',
target: 'http://127.0.0.1:18085/',
changeOrigin: true,
pathRewrite: {},
},
'/user-api/': {
// target: 'http://180.167.213.26:18085/',
target: 'http://127.0.0.1:18082/',
changeOrigin: true,
pathRewrite: {},
},
'/pay-api/': {
// target: 'http://180.167.213.26:18085/',
target: 'http://127.0.0.1:18084/',
changeOrigin: true,
pathRewrite: {},
},
2019-03-10 08:40:16 +00:00
};