new(all);
This commit is contained in:
parent
4331258cba
commit
bd26fdc0bf
2 changed files with 2 additions and 7 deletions
|
@ -159,11 +159,6 @@ export class GBMinService {
|
||||||
// Servers default UI on root address '/' if web enabled.
|
// Servers default UI on root address '/' if web enabled.
|
||||||
|
|
||||||
if (process.env.DISABLE_WEB !== 'true') {
|
if (process.env.DISABLE_WEB !== 'true') {
|
||||||
// SSR processing and default.gbui access definition.
|
|
||||||
|
|
||||||
GBServer.globals.server.get('/', async (req, res, next) => {
|
|
||||||
await GBSSR.ssrFilter(req, res, next);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Servers the bot information object via HTTP so clients can get
|
// Servers the bot information object via HTTP so clients can get
|
||||||
// instance information stored on server.
|
// instance information stored on server.
|
||||||
|
|
|
@ -289,11 +289,11 @@ export class GBServer {
|
||||||
return proxy.web(req, res, { target: 'http://localhost:1111' }); // Express server
|
return proxy.web(req, res, { target: 'http://localhost:1111' }); // Express server
|
||||||
} else if (host === process.env.ROUTER_1) {
|
} else if (host === process.env.ROUTER_1) {
|
||||||
GBLogEx.info(0, `Redirecting...`);
|
GBLogEx.info(0, `Redirecting...`);
|
||||||
return proxy.web(req, res, { target: `http://localhost:${process.env.ROUTER_1_PORT}` }); // Express server
|
return proxy.web(req, res, { target: `http://localhost:${process.env.ROUTER_1_PORT}` });
|
||||||
|
|
||||||
} else if (host === process.env.ROUTER_2) {
|
} else if (host === process.env.ROUTER_2) {
|
||||||
GBLogEx.info(0, `Redirecting...`);
|
GBLogEx.info(0, `Redirecting...`);
|
||||||
return proxy.web(req, res, { target: `http://localhost:${process.env.ROUTER_2_PORT}` }); // Express server
|
return proxy.web(req, res, { target: `http://localhost:${process.env.ROUTER_2_PORT}` });
|
||||||
} else {
|
} else {
|
||||||
await GBSSR.ssrFilter(req, res, next);
|
await GBSSR.ssrFilter(req, res, next);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue