From b61e96de9c842ac33c9e099fb48e6f7e7b3ed455 Mon Sep 17 00:00:00 2001 From: fin444 Date: Sat, 15 Jun 2024 12:56:47 -0400 Subject: [PATCH] reverse_proxy: add health_follow_redirects (#401) --- src/docs/markdown/caddyfile/directives/reverse_proxy.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docs/markdown/caddyfile/directives/reverse_proxy.md b/src/docs/markdown/caddyfile/directives/reverse_proxy.md index 1fdc564..57f7ce4 100644 --- a/src/docs/markdown/caddyfile/directives/reverse_proxy.md +++ b/src/docs/markdown/caddyfile/directives/reverse_proxy.md @@ -72,6 +72,7 @@ reverse_proxy [] [] { health_timeout health_status health_body + health_follow_redirects health_headers { [] } @@ -324,6 +325,8 @@ Active health checks perform health checking in the background on a timer. To en - **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** will cause the health check to follow redirects provided by upstream. Without this setting, a redirect will cause the check to fail. + - **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.