Skip to content

Commit

Permalink
add healtz
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Apr 24, 2024
1 parent dfa3140 commit 1043fcd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion etc/nginx/route.conf
Original file line number Diff line number Diff line change
@@ -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") )
}
Expand Down

0 comments on commit 1043fcd

Please sign in to comment.