This commit is contained in:
parent
dc363d66ab
commit
19c38f721e
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue