fix(proxy): make healthcheck endpoint accessible at all times

This commit is contained in:
Karol Sójko
2023-02-23 10:00:08 +01:00
parent b17fddda63
commit b1122a3da5
+6 -6
View File
@@ -8,6 +8,12 @@ const ENABLED = false
http
.createServer((req, res) => {
if (req.url === '/healthcheck') {
res.writeHead(200)
res.end()
return
}
if (!ENABLED) {
res.writeHead(404)
res.end()
@@ -25,12 +31,6 @@ http
return
}
if (req.url === '/healthcheck') {
res.writeHead(200)
res.end()
return
}
delete req.headers.authorization
delete req.headers['x-auth-token']
delete req.headers['x-auth-offline-token']