From 5c5ee0776e60cca62a0dc99ea32f2ca233682c97 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Wed, 15 Jul 2020 20:37:39 +0200 Subject: [PATCH] osbs: OSBS does not use the cdn to pull images Signed-off-by: Clement Verna --- .../templates/reversepassproxy.registry-generic.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.registry-generic.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.registry-generic.conf index dee27ee59a..7103d296b0 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.registry-generic.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.registry-generic.conf @@ -9,6 +9,7 @@ RewriteCond %{HTTP:VIA} !cdn77 RewriteCond %{HTTP:VIA} !cloudfront RewriteCond %{SERVER_NAME} !^registry-no-cdn\.fedoraproject.org$ RewriteCond %{REQUEST_METHOD} !^(PATCH|POST|PUT|DELETE|HEAD)$ +RewriteCond %{REMOTE_HOST} ^osbs-*$ RewriteRule ^/v2/(.*)/blobs/([a-zA-Z0-9:]*) https://cdn.registry.fedoraproject.org/v2/$1/blobs/$2 [R] {% endif %}