1
0
Fork 0
forked from infra/ansible

varnish / proxies: do not try and use src backend on non rdu3 hosts

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2026-03-23 20:21:08 -07:00
commit 58a135c6c4

View file

@ -114,6 +114,7 @@ sub vcl_recv {
if (req.http.X-Forwarded-Server ~ "^lists.fedoraproject.org" || req.http.X-Forwarded-Server ~ "^lists.stg.fedoraproject.org" || req.http.X-Forwarded-Server ~ "^lists.fedorahosted.org" || req.http.X-Forwarded-Server ~ "^lists.stg.fedorahosted.org" || req.http.X-Forwarded-Server ~ "^lists.pagure.io" ) {
set req.backend_hint = mailman;
}
{% if datacenter == 'rdu3' %}
if (req.http.X-Forwarded-Server ~ "^src.fedoraproject.org" || req.http.X-Forwarded-Server ~ "^src.stg.fedoraproject.org" ) {
set req.backend_hint = src;
# Do not cache .crate files as it messes up checksums
@ -134,6 +135,7 @@ sub vcl_recv {
set req.http.clear-cookies = "yes";
}
}
{% endif %}
# Pass any requests with the "If-None-Match" header directly.
if (req.http.If-None-Match) {