1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Peering fixes, 404 page, new desktop special keys.

This commit is contained in:
Ylian Saint-Hilaire 2019-08-12 14:58:06 -07:00
parent 28fd7c4907
commit 043a7c0b68
11 changed files with 260 additions and 31 deletions

View file

@ -86,8 +86,15 @@ module.exports.CreateRedirServer = function (parent, db, args, func) {
obj.app.post(url + "amtevents.ashx", obj.parent.webserver.handleAmtEventRequest);
obj.app.get(url + "meshsettings", obj.parent.webserver.handleMeshSettingsRequest);
obj.app.get(url + "meshagents", obj.parent.webserver.handleMeshAgentRequest);
// Server redirects
if (parent.config.domains[i].redirects) {
for (var j in parent.config.domains[i].redirects) {
if (j[0] != '_') { obj.app.get(url + j, obj.parent.webserver.handleDomainRedirect); }
}
}
}
};
}
// Setup all HTTP redirection handlers
//obj.app.set("etag", false);