From 563eb6658a4780d90ecafcfa71f9d8f437d060fd Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Tue, 2 Apr 2024 17:42:46 +0200 Subject: [PATCH] [varnish] Update the expected response for new mailman deployment New mailman staging deployment is giving 302 as a default response instead of 301. Let's reflect that in varnish config. Signed-off-by: Michal Konecny --- roles/varnish/templates/proxies.vcl.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/varnish/templates/proxies.vcl.j2 b/roles/varnish/templates/proxies.vcl.j2 index ca08bd28dc..7104385253 100644 --- a/roles/varnish/templates/proxies.vcl.j2 +++ b/roles/varnish/templates/proxies.vcl.j2 @@ -21,7 +21,11 @@ backend mailman { .url = "/"; .interval = 5s; .timeout = 5s; +{{ if env != staging }} .expected_response = 301; +{{ else }} + .expected_response = 302; +{{ endif }} } }