new(all);

This commit is contained in:
me@rodrigorodriguez.com 2024-10-20 00:21:14 -03:00
parent 4331258cba
commit bd26fdc0bf
2 changed files with 2 additions and 7 deletions

View file

@ -159,11 +159,6 @@ export class GBMinService {
// Servers default UI on root address '/' if web enabled.
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
// instance information stored on server.

View file

@ -289,11 +289,11 @@ export class GBServer {
return proxy.web(req, res, { target: 'http://localhost:1111' }); // Express server
} else if (host === process.env.ROUTER_1) {
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) {
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 {
await GBSSR.ssrFilter(req, res, next);
}