X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvarnish%2Ffiles%2Fdefault.vcl;h=bff0524d7a122633cf64bd62c552654e9dfedf70;hb=d7e050f56b61ddc883f8328f17933d1d1f94dc9a;hp=10b51d9ff3209d5bd1e2c418f9ef72279f4c6b12;hpb=d00ed636079272459760564df20b4eb336969708;p=mirror%2Fdsa-puppet.git diff --git a/modules/varnish/files/default.vcl b/modules/varnish/files/default.vcl index 10b51d9ff..bff0524d7 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 - .weight = 10000; + .backend = { + .host = "5.153.231.3"; + .port = "80"; + } + .weight = 1; } { - .backend = powell + .backend = { + .host = "213.165.95.4"; + .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); } +