Added invite HTTP to HTTPS redirect (#4622)

This commit is contained in:
Ylian Saint-Hilaire 2022-10-24 17:56:05 -07:00
parent cc7670cc31
commit 2981217a2e
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ module.exports.CreateRedirServer = function (parent, db, args, func) {
if (obj.parent.fs.existsSync(p)) { obj.app.use(url + '.well-known', obj.express.static(p)); }
// Setup all of the redirections to HTTPS
const redirections = ['player.htm', 'terms', 'logout', 'MeshServerRootCert.cer', 'mescript.ashx', 'checkmail', 'agentinvite', 'messenger', 'meshosxagent', 'devicepowerevents.ashx', 'downloadfile.ashx', 'userfiles/*', 'webrelay.ashx', 'health.ashx', 'logo.png', 'welcome.jpg'];
const redirections = ['player.htm', 'terms', 'logout', 'MeshServerRootCert.cer', 'mescript.ashx', 'checkmail', 'agentinvite', 'messenger', 'meshosxagent', 'devicepowerevents.ashx', 'downloadfile.ashx', 'userfiles/*', 'webrelay.ashx', 'health.ashx', 'logo.png', 'welcome.jpg', 'invite'];
for (i in redirections) { obj.app.get(url + redirections[i], performRedirection); }
}