flat: huanan

This commit is contained in:
史典卓
2024-11-25 10:05:16 +08:00
parent 15fda3a485
commit 599a4e0f33
12 changed files with 36 additions and 29 deletions

View File

@@ -24,20 +24,20 @@ module.exports = {
port: 1888,
proxy: {
"/api": {
target: 'http://39.98.184.58:8000',
target: 'http://39.98.184.58:88',
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/'
}
onProxyReq(proxyReq, req, res) {
console.log(`[Proxy Request] ${req.method} ${req.url} -> ${proxyReq.protocol}//${proxyReq.host}${proxyReq.path}`);
},
},
"/qq/map": {
//本地服务接口地址
target: "https://apis.map.qq.com",
ws: true,
pathRewrite: {
"^/qq/map": "/"
}
// pathRewrite: {
// "^/qq/map": "/"
// }
}
}
}