From c0f95245b71a3f5d87a683e261ae7b89e391ec7a Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Thu, 30 May 2024 08:17:35 -0700 Subject: [PATCH] chore: add healthz and admin to the nginx configmap for access (#66) --- charts/housewatch/templates/nginx-configmap.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/charts/housewatch/templates/nginx-configmap.yaml b/charts/housewatch/templates/nginx-configmap.yaml index c1e6623..450bceb 100644 --- a/charts/housewatch/templates/nginx-configmap.yaml +++ b/charts/housewatch/templates/nginx-configmap.yaml @@ -29,5 +29,21 @@ data: proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; } + + location /admin { + proxy_pass http://housewatch-api:8000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + } + + location /healthz { + proxy_pass http://housewatch-api:8000; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + } } }