Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
remove old mirrors
Browse files Browse the repository at this point in the history
dwradcliffe committed Jul 29, 2015
1 parent 4488419 commit 21293b9
Showing 3 changed files with 2 additions and 42 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -244,7 +244,7 @@ GRAPH
rubygems-backups (0.0.24)
chef-vault (>= 0.0.0)
rubygems-ruby (>= 0.0.0)
rubygems-balancer (0.0.63)
rubygems-balancer (0.0.64)
chef-vault (>= 0.0.0)
datadog (>= 0.0.0)
logrotate (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-balancer'

version '0.0.63'
version '0.0.64'

depends 'chef-vault'
depends 'datadog'
40 changes: 0 additions & 40 deletions cookbooks/rubygems-balancer/templates/default/site.conf.erb
Original file line number Diff line number Diff line change
@@ -15,26 +15,6 @@ server {
rewrite ^(.*) https://$host$1 permanent;
<% else %>

# if ($geoip_country_code = "CN") {
# set $gem_mirror http://au-m.rubygems.org;
# }

# if ($geoip_country_code = "JP") {
# set $gem_mirror http://au-m.rubygems.org;
# }

# if ($geoip_country_code = "AU") {
# set $gem_mirror http://au-m.rubygems.org;
# }

# if ($geoip_country_code = "NZ") {
# set $gem_mirror http://au-m.rubygems.org;
# }

if ($continent = "EU") {
set $gem_mirror http://aws-eu-cache01.rubygems.org;
}

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
@@ -177,26 +157,6 @@ server {

server_name <%= @server_names.join(" ") %>;

# if ($geoip_country_code = "CN") {
# set $gem_mirror_ssl https://au-m.rubygems.org;
# }

# if ($geoip_country_code = "JP") {
# set $gem_mirror_ssl https://au-m.rubygems.org;
# }

# if ($geoip_country_code = "AU") {
# set $gem_mirror_ssl https://au-m.rubygems.org;
# }

# if ($geoip_country_code = "NZ") {
# set $gem_mirror_ssl https://au-m.rubygems.org;
# }

if ($continent = "EU") {
set $gem_mirror_ssl https://aws-eu-cache01.rubygems.org;
}

# SSL settings
ssl on;
ssl_certificate <%= @ssl_cert %>;

0 comments on commit 21293b9

Please sign in to comment.