修改代理

This commit is contained in:
nisen
2023-08-25 10:36:05 +08:00
parent 4b2816e183
commit 22fb0256c7

View File

@@ -128,12 +128,13 @@ module.exports = {
},
'/systemapi': {
// 目标代理服务器地址
target: 'http://127.0.0.1:9090',
// target: 'http://127.0.0.1:9090',
target: 'https://u-pre.boe.com',
changeOrigin: true,
logLevel:'debug',
secure: false,
pathRewrite: {
'^/systemapi': ''
// '^/systemapi': ''
}
},
'/uboeApi': {
@@ -156,22 +157,24 @@ module.exports = {
},
'/statApi': {
// 目标代理服务器地址
target: 'http://127.0.0.1:9080',
// target: 'http://127.0.0.1:9080',
target: 'https://u-pre.boe.com',
changeOrigin: true,
logLevel:'debug',
secure: false,
pathRewrite: {
'^/statApi': ''
// '^/statApi': ''
}
},
'/socialApi': {
// 目标代理服务器地址
target: 'http://127.0.0.1:9081',
// target: 'http://127.0.0.1:9081',
target: 'https://u-pre.boe.com',
changeOrigin: true,
logLevel:'debug',
secure: false,
pathRewrite: {
'^/socialApi': ''
// '^/socialApi': ''
}
},
'/report': {
@@ -183,13 +186,19 @@ module.exports = {
'^/report': '/report'
}
},
'/infrasApi': {
// 目标代理服务器地址
target: 'https://u-pre.boe.com',
changeOrigin: true,
secure: false,
},
},
},
css: {
extract: {
ignoreOrder: true
}
}
}