This commit is contained in:
lcw
2025-09-26 16:13:54 +08:00
parent e7a5f443f2
commit eb91b68d03
86 changed files with 143 additions and 170 deletions

View File

@ -4,7 +4,7 @@ function resolve(dir) {
return path.join(__dirname, dir);
}
// const serverHost = "http://192.168.1.98:8006";//毛毛
const serverHost = "http://192.168.1.32:8016";//波哥
const serverHost = "http://192.168.1.32:8066";//波哥
// const serverHost = "http://192.168.0.231:8006"//线上
// const serverHost = "http://47.108.232.77:9537";//波哥
// const serverHost = "http://127.0.0.1:8006"
@ -39,19 +39,14 @@ module.exports = {
proxyReq.setHeader("Connection", "Keep-Alive"); //设置长连接
}
},
"/bagl/mosty-base": {
target: serverHost, // 后端服务器地址
'/bagl/mosty-base': {
target: 'http://192.168.1.32:8066', // 后端服务器地址
changeOrigin: true, // 允许跨域
secure: false, // 如果是https需要设置为false
pathRewrite: {
'^/bagl/mosty-base': '/mosty-api/mosty-base' // 路径重写/bagl -> /mosty-api
'^/bagl/mosty-base': '/mosty-base' // 精确路径重写
}
},
"/mosty-base": {
target: serverHost,
changeOrigin: true,
logLevel: "debug"
},
"/data/rec": {
target: "http://80.93.24.195:8181",
changeOrigin: true,