[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 <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2024-04-02 17:42:46 +02:00
parent b9f50bbcd2
commit 563eb6658a

View file

@ -21,7 +21,11 @@ backend mailman {
.url = "/";
.interval = 5s;
.timeout = 5s;
{{ if env != staging }}
.expected_response = 301;
{{ else }}
.expected_response = 302;
{{ endif }}
}
}