1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-07 06:54:49 +00:00

drop https redirect, CloudFront does it for us

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-11-05 17:21:20 +01:00
parent f3797a943c
commit f21768eee7
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -8,15 +8,6 @@ class APIRouter {
/* for ElasticBeanstalk Load Balancer healthcheck */
app.use('/healthcheck', async (req, res) => res.send('OK'))
/* redirect if not on https on prod */
app.use(async (req, res, next) => {
if (req.get('x-forwarded-proto') == 'http') {
res.redirect('https://' + req.headers.host + req.url);
} else {
next()
}
});
}
}