Add proxy configuration for Koschei staging
This commit is contained in:
parent
c61a0adcf5
commit
7d480abcbf
4 changed files with 27 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue