From e52972e22fd34458e2a299feca3e2fd6675ba09c Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 30 Jul 2020 13:36:22 -0600 Subject: [PATCH] Add cdn0{1,2}.quay.io It appears quay is now returning their own domain in their blob redirects. We currently don't cache it so in order for it to work we need to add cdn01.quay.io and cdn02.quay.io to the proxy config Change-Id: I2b603d6a5d057e388d473f71bfbaf822d65dd4e1 --- playbooks/roles/mirror/templates/mirror.vhost.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playbooks/roles/mirror/templates/mirror.vhost.j2 b/playbooks/roles/mirror/templates/mirror.vhost.j2 index 5e37fc6ca7..756b6c51a6 100644 --- a/playbooks/roles/mirror/templates/mirror.vhost.j2 +++ b/playbooks/roles/mirror/templates/mirror.vhost.j2 @@ -489,6 +489,16 @@ ErrorLogFormat "[%{cu}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% , \ ProxyPass "/iah50.r.cloudfront.net/" "https://iah50.r.cloudfront.net/" ttl=120 keepalive=On retry=0 ProxyPassReverse "/iah50.r.cloudfront.net/" "https://iah50.r.cloudfront.net/" + # cdn01.quay.io + CacheEnable disk "/cdn01.quay.io" + ProxyPass "/cdn01.quay.io/" "https://cdn01.quay.io/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/cdn01.quay.io/" "https://cdn01.quay.io/" + + # cdn02.quay.io + CacheEnable disk "/cdn02.quay.io" + ProxyPass "/cdn02.quay.io/" "https://cdn02.quay.io/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/cdn02.quay.io/" "https://cdn02.quay.io/" + # quay.io CacheEnable disk "/" ProxyPass "/" "https://quay.io/" ttl=120 keepalive=On retry=0