Skip to content

Commit

Permalink
fix(openresty): add healthz endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <[email protected]>
  • Loading branch information
fzipi committed Apr 22, 2024
1 parent 47302ed commit aa33d2b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions openresty/templates/includes/location_common.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

location /healthz {
access_log off;
add_header Content-Type text/plain;
return 200 "OK";
}

location /metrics/nginx {
access_log off;
allow ${METRICS_ALLOW_FROM};
deny ${METRICS_DENY_FROM};
proxy_store off;
stub_status;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}

0 comments on commit aa33d2b

Please sign in to comment.