From 8c7a964b7c8ba287821b98d197e5bef313e70008 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 12 Aug 2017 11:38:24 -0400 Subject: [PATCH] Add rubygems.org to reverse proxy cache It seems bundler install used different hosts to download gems from. I do not know ATM, if this is a different backend on rubygems side or same as existing api.rubygems.org. I do know bundler doesn't like using api.rubygems.org and we get 301 redirected to rubygems.org Change-Id: I889900e4e75f78fad1a920e20f82fb5a4f4a75b9 Signed-off-by: Paul Belanger --- modules/openstack_project/templates/mirror.vhost.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index a5ced64d05..d2c8b883bb 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -174,6 +174,11 @@ NameVirtualHost <%= @vhost_name %>:8081 CacheEnable disk "/api.rubygems" ProxyPass "/api.rubygems/" "https://api.rubygems.org/" ProxyPassReverse "/api.rubygems/" "https://api.rubygems.org/" + + # rubygems.org + CacheEnable disk "/rubygems" + ProxyPass "/rubygems/" "https://rubygems.org/" + ProxyPassReverse "/rubygems/" "https://rubygems.org/" :8081>