This commit is contained in:
java110 2022-08-11 17:10:44 +08:00
parent ee6dfe4e58
commit 0c3cd322f5

8
app.js
View File

@ -32,16 +32,16 @@ let opts = {
} }
// app.use('/callComponent', proxy('http://192.168.100.108:8008', opts)); app.use('/callComponent', proxy('http://192.168.100.108:8088', opts));
// app.use('/app', proxy('http://192.168.100.108:8008', 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
})); }));
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.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://192.168.1.106:8012',opts)); // app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
// app.use('/app',proxy('http://192.168.1.106:8012',opts)); // app.use('/app',proxy('http://192.168.1.106:8012',opts));