From 4614cba28d04025d70879660e78fb0d42276ac50 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Wed, 22 May 2024 10:42:34 +0200 Subject: [PATCH] ansible-inventories/gentner#2471 Update Varnish configuration --- templates/default.vcl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/default.vcl b/templates/default.vcl index f434c85..ef00765 100644 --- a/templates/default.vcl +++ b/templates/default.vcl @@ -124,6 +124,16 @@ sub vcl_recv { return (pass); } + # Health Check + if (req.url == "/varnishcheck") { + return(synth(751, "OK!")); + if (std.healthy(req.backend_hint)) { + return(synth(751, "OK!")); + } else { + return(synth(752, "FAILED!")); + } + } + # Some generic URL manipulation, useful for all templates that follow # First remove the Google Analytics added parameters, useless for our backend if (req.url ~ "(\?|&)(utm_source|utm_medium|utm_campaign|utm_content|gclid|cx|ie|cof|siteurl)=") { -- GitLab