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 } } }