From 1d4f6074b04a18ff96ad3cc0fe52a34d381171d9 Mon Sep 17 00:00:00 2001 From: proffapt Date: Mon, 1 Jul 2024 08:48:21 +0530 Subject: [PATCH] feat: remove heimdall protection from healthcheck endpoint --- metaploy/naarad.metaploy.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/metaploy/naarad.metaploy.conf b/metaploy/naarad.metaploy.conf index e4d58d7..24ed3e1 100644 --- a/metaploy/naarad.metaploy.conf +++ b/metaploy/naarad.metaploy.conf @@ -19,6 +19,14 @@ server { proxy_pass http://naarad; add_header Content-Type application/json; } + ## Allows us to call the /v1/health endpoint for healthcheck + location = /v1/health { + proxy_pass http://naarad; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Original-URI $request_uri; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } # Enables us to allow user registration only via # our custon signup logic, which ultimately renders the