提交 630b8494 authored 作者: wangmenglong's avatar wangmenglong

部署派遣端

上级 5002e954
...@@ -34,15 +34,26 @@ app.all('*', function (req, res, next) { ...@@ -34,15 +34,26 @@ app.all('*', function (req, res, next) {
} }
}); });
app.use('/djl-account', /*app.use('/djl-account',
createProxyMiddleware({ createProxyMiddleware({
target: "http://djl-account", target: "http://djl-account",
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/djl-account": "/" "^/djl-account": "/"
} }
})); }));*/
app.use('/djl-account',
function(req, res, next){
console.log("请求account")
},createProxyMiddleware({
target: "http://djl-account",
changeOrigin: true,
pathRewrite: {
"^/djl-account": "/"
}
}));
app.use('/djl-archives', app.use('/djl-archives',
createProxyMiddleware({ createProxyMiddleware({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论