This commit is contained in:
Leandro Facchinetti 2021-03-16 01:35:44 +00:00
parent dc363d66ab
commit 19c38f721e
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ module.exports = async (require) => {
const reverseProxy = express();
reverseProxy.use((req, res, next) => {
if (req.hostname !== new URL(app.get("url")).hostname)
return res.redirect(`${app.get("url")}${req.originalUrl}`);
if (req.hostname !== new URL(webApplication.get("url")).hostname)
return res.redirect(`${webApplication.get("url")}${req.originalUrl}`);
next();
});