修改代理

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': { '/systemapi': {
// 目标代理服务器地址 // 目标代理服务器地址
target: 'http://127.0.0.1:9090', // target: 'http://127.0.0.1:9090',
target: 'https://u-pre.boe.com',
changeOrigin: true, changeOrigin: true,
logLevel:'debug', logLevel:'debug',
secure: false, secure: false,
pathRewrite: { pathRewrite: {
'^/systemapi': '' // '^/systemapi': ''
} }
}, },
'/uboeApi': { '/uboeApi': {
@@ -156,22 +157,24 @@ module.exports = {
}, },
'/statApi': { '/statApi': {
// 目标代理服务器地址 // 目标代理服务器地址
target: 'http://127.0.0.1:9080', // target: 'http://127.0.0.1:9080',
target: 'https://u-pre.boe.com',
changeOrigin: true, changeOrigin: true,
logLevel:'debug', logLevel:'debug',
secure: false, secure: false,
pathRewrite: { pathRewrite: {
'^/statApi': '' // '^/statApi': ''
} }
}, },
'/socialApi': { '/socialApi': {
// 目标代理服务器地址 // 目标代理服务器地址
target: 'http://127.0.0.1:9081', // target: 'http://127.0.0.1:9081',
target: 'https://u-pre.boe.com',
changeOrigin: true, changeOrigin: true,
logLevel:'debug', logLevel:'debug',
secure: false, secure: false,
pathRewrite: { pathRewrite: {
'^/socialApi': '' // '^/socialApi': ''
} }
}, },
'/report': { '/report': {
@@ -183,6 +186,12 @@ module.exports = {
'^/report': '/report' '^/report': '/report'
} }
}, },
'/infrasApi': {
// 目标代理服务器地址
target: 'https://u-pre.boe.com',
changeOrigin: true,
secure: false,
},
}, },
}, },