From 20234e08aeadc90329241a1316b8ecbef6008fd2 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 21 Nov 2023 17:25:03 +0000 Subject: [PATCH] Update nginx.conf --- nginx.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 64d751b..51522ac 100644 --- a/nginx.conf +++ b/nginx.conf @@ -16,6 +16,13 @@ http { text/html html htm shtml; } + # Health check location at a secret path + location /secret-health-path { + # This could be a simple return or proxy to an actual health check endpoint + add_header Content-Type text/plain; + return 200 'Healthy'; + } + location / { # Use the placeholders for the proxy pass proxy_pass ${PROTOCOL}://${BACKEND_ADDRESS}:${BACKEND_PORT}; @@ -27,7 +34,7 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Accept-Encoding ""; proxy_buffering off; - proxy_ssl_verify off; + proxy_ssl_verify off; # Skip SSL verification, be cautious } } }