From 1043fcdc7fea1244b753a3f9654539ec88398ab1 Mon Sep 17 00:00:00 2001 From: alexandredevely <12896316+alexandredevely@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:03:54 +0200 Subject: [PATCH] add healtz --- etc/nginx/route.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/etc/nginx/route.conf b/etc/nginx/route.conf index 08b1f13..9b4f862 100644 --- a/etc/nginx/route.conf +++ b/etc/nginx/route.conf @@ -1,4 +1,14 @@ - location = /node.txt { + + location = /healthz { + # MIME type determined by default_type: + default_type 'text/plain'; + content_by_lua_block { + ngx.say( "OK" ) + } + + location = /node { + # MIME type determined by default_type: + default_type 'text/plain'; content_by_lua_block { ngx.say( os.getenv("NODE_NAME") ) }