From d0d72acf8ffe6edb40cb402972c8d93c6c25354b Mon Sep 17 00:00:00 2001 From: Qing Hao Date: Wed, 17 Jul 2019 12:59:33 +0800 Subject: [PATCH] add /healthz for health check (#92) --- rootfs/opt/ibm/router/nginx/template/nginx.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rootfs/opt/ibm/router/nginx/template/nginx.tmpl b/rootfs/opt/ibm/router/nginx/template/nginx.tmpl index 48192b472e..0861fddda0 100644 --- a/rootfs/opt/ibm/router/nginx/template/nginx.tmpl +++ b/rootfs/opt/ibm/router/nginx/template/nginx.tmpl @@ -183,6 +183,7 @@ http { ## end server {{ $server.Hostname }} {{ end }} + } @@ -306,6 +307,12 @@ http { return 404; } + # For NGINX healthcheck and access to nginx stats + location /healthz { + access_log off; + return 200; + } + {{ end }} {{ end }}