projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
29.172.in-addr.arpa on geo*
[mirror/dsa-puppet.git]
/
modules
/
varnish
/
files
/
default.vcl
diff --git
a/modules/varnish/files/default.vcl
b/modules/varnish/files/default.vcl
index
10b51d9
..
bff0524
100644
(file)
--- 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;
}
}
.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 {
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;
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 {
}
sub vcl_fetch {
@@
-67,3
+63,4
@@
sub vcl_deliver {
return(deliver);
}
return(deliver);
}
+