mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
很多小伙伴安装部署的时候8088 不改成8008 所以统一修改
Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
parent
25539c5df8
commit
1db1d989be
20
app.js
20
app.js
@ -40,20 +40,20 @@ let opts = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// todo 测试环境 测试使用,生产环境请用nginx代理
|
// todo 测试环境 测试使用,生产环境请用nginx代理
|
||||||
app.use('/callComponent', proxy('http://192.168.100.108:8088', opts));
|
// app.use('/callComponent', proxy('http://192.168.100.108:8088', opts));
|
||||||
app.use('/app', proxy('http://192.168.100.108:8088', opts));
|
// app.use('/app', proxy('http://192.168.100.108:8088', opts));
|
||||||
app.use('/ws', createProxyMiddleware({
|
// app.use('/ws', createProxyMiddleware({
|
||||||
target: 'http://192.168.100.108:8008',
|
// target: 'http://192.168.100.108:8008',
|
||||||
changeOrigin: true,
|
// changeOrigin: true,
|
||||||
ws: true
|
// ws: true
|
||||||
}));
|
// }));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// todo 本机 开发用,生产环境请用nginx代理
|
// todo 本机 开发用,生产环境请用nginx代理
|
||||||
// app.use('/ws', proxy('http://127.0.0.1:8008', opts));
|
app.use('/ws', proxy('http://127.0.0.1:8008', opts));
|
||||||
// app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
app.use('/callComponent', proxy('http://127.0.0.1:8008', opts));
|
||||||
// app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
app.use('/app', proxy('http://127.0.0.1:8008', opts));
|
||||||
|
|
||||||
//app.listen(3000);
|
//app.listen(3000);
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user