From f534f34cacf65ed2e465f1e27c6b14d512b17114 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 12 Dec 2023 16:50:47 +0000 Subject: [PATCH] adding healthcheck --- nginx.conf.template | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nginx.conf.template b/nginx.conf.template index 227aef0..4611d45 100644 --- a/nginx.conf.template +++ b/nginx.conf.template @@ -1,5 +1,17 @@ events {} +http { + server { + listen 8080; # Listen on a separate port for health checks + + location /healthz { + # Just return a 200 OK for any request to /healthz + return 200 'healthy\n'; + add_header Content-Type text/plain; + } + } +} + stream { # TCP proxy configuration server {