mirror of
https://github.com/standardnotes/server
synced 2026-08-28 02:57:18 -04:00
fix(proxy): make healthcheck endpoint accessible at all times
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user