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:
parent
02418450f3
commit
58a135c6c4
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue