Skip to content

Commit

Permalink
Add health endpoint that bypasses API routing.
Browse files Browse the repository at this point in the history
For use in startup situations where there's an external egress, but the
app needs to be marked as healthy before the envoy-control-proxy can
become active and populate the egress envoy layer for real API routing.
  • Loading branch information
GUI committed Sep 29, 2023
1 parent c8b12f9 commit 78c1b73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/etc/nginx/router.conf.etlua
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ http {
real_ip_recursive <%- host["real_ip_recursive"] %>;
<% end %>

<% if host["default"] then %>
location = /api-umbrella/v1/direct-router-health {
content_by_lua_file '<%- config["_src_root_dir"] %>/src/api-umbrella/http-api/health.lua';
}
<% end %>

location / {
include ./gatekeeper.conf;
}
Expand Down

0 comments on commit 78c1b73

Please sign in to comment.