2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
7 director packages_debian_org random {
10 .host = "194.177.211.202";
17 .host = "87.106.64.223";
27 # Add a unique header containing the client address
28 remove req.http.X-Forwarded-For;
29 set req.http.X-Forwarded-For = req.http.rlnclientipaddr;
31 set req.backend = packages_debian_org;
37 if (beresp.status != 200 && beresp.status != 403 && beresp.status != 404 && beresp.status != 301 && beresp.status != 302) {
41 # if i cant connect to the backend, ill set the grace period to be 600 seconds to hold onto content
42 set beresp.ttl = 600s;
43 set beresp.grace = 600s;
45 if (beresp.status >= 500) {
49 set beresp.http.X-Cacheable = "YES";
56 set resp.http.X-Served-By = server.hostname;
58 set resp.http.X-Cache = "HIT";
59 set resp.http.X-Cache-Hits = obj.hits;
61 set resp.http.X-Cache = "MISS";