From eb1b962df5ff00a16cd92b2822979d998f348fd7 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 15 Jun 2018 09:33:55 -0700 Subject: [PATCH] Add new dockerhub cloudflare backend Dockerhub appears to be using cloudflare instead of cloudfront now for image layer object storage. We keep the old cloudfront proxy in case docker hasn't completely migrated. Change-Id: Icfc08f13784cd1bf21edf2bc27c4253e38e27422 --- modules/openstack_project/templates/mirror.vhost.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index 01cb4cad7a..2824510fe5 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -258,6 +258,11 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a ProxyPass "/cloudfront/" "https://dseasb33srnrn.cloudfront.net/" ttl=120 keepalive=On retry=0 ProxyPassReverse "/cloudfront/" "https://dseasb33srnrn.cloudfront.net/" + # production.cloudflare.docker.com + CacheEnable disk "/cloudflare" + ProxyPass "/cloudflare/" "https://production.cloudflare.docker.com/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/cloudflare/" "https://production.cloudflare.docker.com/" + :8082> @@ -313,4 +318,9 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a ProxyPass "/cloudfront/" "https://dseasb33srnrn.cloudfront.net/" ttl=120 keepalive=On retry=0 ProxyPassReverse "/cloudfront/" "https://dseasb33srnrn.cloudfront.net/" + # production.cloudflare.docker.com + CacheEnable disk "/cloudflare" + ProxyPass "/cloudflare/" "https://production.cloudflare.docker.com/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/cloudflare/" "https://production.cloudflare.docker.com/" +