Add proxy configuration for Koschei staging

This commit is contained in:
Mikolaj Izdebski 2015-05-04 13:19:42 +02:00
parent c61a0adcf5
commit 7d480abcbf
4 changed files with 27 additions and 0 deletions

View file

@ -123,6 +123,11 @@ backend mirrormanager2 {
.port = "10039";
}
backend koschei {
.host = "localhost";
.port = "10040";
}
acl purge {
"192.168.1.129"; // wiki01.vpn
@ -246,6 +251,13 @@ sub vcl_recv {
set req.url = regsub(req.url, "\?.*", "");
}
}
if (req.http.X-Forwarded-Server ~ "^koschei.fedoraproject.org") {
set req.backend_hint = koschei;
if (req.url ~ "^/static/") {
unset req.http.cookie;
set req.url = regsub(req.url, "\?.*", "");
}
}
if (req.http.X-Forwarded-Server ~ "^qa.fedoraproject.org") {
if (req.url ~ "^/blockerbugs") {
set req.backend_hint = blockerbugs;