Skip to content

Commit

Permalink
reverse_proxy: add health_follow_redirects (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
fin444 authored Jun 15, 2024
1 parent 50fb678 commit b61e96d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/docs/markdown/caddyfile/directives/reverse_proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ reverse_proxy [<matcher>] [<upstreams...>] {
health_timeout <duration>
health_status <status>
health_body <regexp>
health_follow_redirects
health_headers {
<field> [<values...>]
}
Expand Down Expand Up @@ -324,6 +325,8 @@ Active health checks perform health checking in the background on a timer. To en

- **health_body** <span id="health_body"/> is a substring or regular expression to match on the response body of an active health check. If the backend does not return a matching body, it will be marked as down.

- **health_follow_redirects** <span id="health_follow_redirects"/> will cause the health check to follow redirects provided by upstream. Without this setting, a redirect will cause the check to fail.

- **health_headers** <span id="health_headers"/> allows specifying headers to set on the active health check requests. This is useful if you need to change the `Host` header, or if you need to provide some authentication to your backend as part of your health checks.


Expand Down

0 comments on commit b61e96d

Please sign in to comment.