From 2889bcc5bb7a3394816397cd36838fb1a1423105 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 10 Jul 2017 16:12:04 +0000 Subject: [PATCH] Caching proxies for tarballs.openstack.org Add a /tarballs/ caching proxy on our per-provider CI mirror servers, so as to reduce load on tarballs.openstack.org for larger artifacts consumed by CI jobs (e.g. 2-4GiB daily docker registry snapshots). Change-Id: I527d32f9b43dabb7640bfb056e2bf828b7c1dfa9 --- modules/openstack_project/templates/mirror.vhost.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index f2caa54782..989ddc6027 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -124,9 +124,16 @@ NameVirtualHost <%= @vhost_name %>:8081 # Per site caching reverse proxy rules # Only cache specific backends, rely on afs cache otherwise. + + # rdo CacheEnable disk "/rdo" ProxyPass "/rdo/" "https://trunk.rdoproject.org/" ProxyPassReverse "/rdo/" "https://trunk.rdoproject.org/" + + # tarballs + CacheEnable disk "/tarballs" + ProxyPass "/tarballs/" "https://tarballs.openstack.org/" + ProxyPassReverse "/tarballs/" "https://tarballs.openstack.org/" :8081>