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 {
20 .host = "194.177.211.202";
25 .host = "87.106.64.223";
31 # Add a unique header containing the client address
32 remove req.http.X-Forwarded-For;
33 set req.http.X-Forwarded-For = req.http.rlnclientipaddr;
35 set req.backend = packages_debian_org;
41 if (beresp.status != 200 && beresp.status != 403 && beresp.status != 404 && beresp.status != 301 && beresp.status != 302) {
45 # if i cant connect to the backend, ill set the grace period to be 600 seconds to hold onto content
46 set beresp.ttl = 600s;
47 set beresp.grace = 600s;
49 if (beresp.status >= 500) {
53 set beresp.http.X-Cacheable = "YES";
60 set resp.http.X-Served-By = server.hostname;
62 set resp.http.X-Cache = "HIT";
63 set resp.http.X-Cache-Hits = obj.hits;
65 set resp.http.X-Cache = "MISS";