X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fvarnish%2Ffiles%2Fdefault.vcl;fp=modules%2Fvarnish%2Ffiles%2Fdefault.vcl;h=0b9ec708510b246c3d05a1766b7ecdb69a402315;hb=b61abc881de4102d4424e72dfd7bf7da3f1e3b6c;hp=10b51d9ff3209d5bd1e2c418f9ef72279f4c6b12;hpb=d00ed636079272459760564df20b4eb336969708;p=dsa-puppet.git diff --git a/modules/varnish/files/default.vcl b/modules/varnish/files/default.vcl index 10b51d9f..0b9ec708 100644 --- a/modules/varnish/files/default.vcl +++ b/modules/varnish/files/default.vcl @@ -4,27 +4,23 @@ ## -director packages_debian_org { +director packages_debian_org random { { - .backend = holter + .backend = { + .host = "194.177.211.202"; + .port = "80"; + } .weight = 10000; } - { - .backend = powell - .weight = 1; - } + { + .backend = { + .host = "87.106.64.223"; + .port = "80"; + } + .weight = 1; + } } -backend holter { - # holter.debian.org - .host = "194.177.211.202"; - .port = "80"; -} -backend powell { - # powell.debian.org - .host = "87.106.64.223"; - .port = "80"; -} sub vcl_recv { @@ -32,9 +28,9 @@ sub vcl_recv { remove req.http.X-Forwarded-For; set req.http.X-Forwarded-For = req.http.rlnclientipaddr; - set req.backend = packages_debian_org; + set req.backend = packages_debian_org; - return(lookup); + return(lookup); } sub vcl_fetch { @@ -67,3 +63,4 @@ sub vcl_deliver { return(deliver); } +