geoip_country /usr/share/GeoIP/GeoIP.dat;

split_clients "${remote_addr}${uri}AAA" $gem_mirror {
    20.0% http://bb-m.rubygems.org;
    80.0% http://rubygems.global.ssl.fastly.net;
}

split_clients "${remote_addr}${uri}AAA" $gem_mirror_ssl {
    20.0% https://bb-m.rubygems.org;
    80.0% https://rubygems.global.ssl.fastly.net;
}

split_clients "${remote_addr}${uri}AAA" $gem_mirror_test {
    100.0% http://cachefly.mirrors.rubygems.org;
}

map $remote_addr $abuser {
  default "";
  95.182.202.145 1;
  87.194.147.142 1;
}

limit_req_zone  $binary_remote_addr  zone=abusers:10m   rate=10r/m;

geoip_country /usr/share/GeoIP/GeoIP.dat;

split_clients "${remote_addr}${uri}AAA" $gem_mirror {
    20.0% http://bb-m.rubygems.org;
    80.0% http://production.cf.rubygems.org;
}

split_clients "${remote_addr}${uri}AAA" $gem_mirror_ssl {
    20.0% https://bb-m.rubygems.org;
    80.0% https://s3.amazonaws.com/production.s3.rubygems.org;
}

split_clients "${remote_addr}${uri}AAA" $gem_mirror_test {
    100.0% http://cachefly.mirrors.rubygems.org;
}

map $remote_addr $abuser {
  default "";
  95.182.202.145 1;
  87.194.147.142 1;
}

limit_req_zone  $binary_remote_addr  zone=abusers:10m   rate=10r/m;
Revert fastly. Throws too many errors at clients
Revert fastly. Throws too many errors at clients
