Move the ostree redirect to dl.fp.o

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-04-17 22:43:02 +02:00
parent fb0f8b35dc
commit c6ce3621b8
2 changed files with 9 additions and 7 deletions

View file

@ -5,6 +5,15 @@ RewriteRule ^.*$ https://fedoraproject.org/wiki/Infrastructure/Mirroring#Tools_t
RewriteRule ^/$ /pub [R=302,L]
# This is to deal with a broken ostree (actually libcurl) that doesn't work well with ostree
# The only remaining image with this bug is F27 Fedora Atomic Workstation
# Can be nuked after F28 GA
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^ostree$
RewriteRule ^/ostree/27/(.*)$ http://brokenostreekojipkgs.fedoraproject.org/ostree/27/$1 [L,R=302]
RedirectMatch 302 ^/pub/fedora/linux/atomic/(.*$) https://kojipkgs.fedoraproject.org/atomic/$1
RedirectMatch 302 ^/pub/fedora/linux/atomic https://kojipkgs.fedoraproject.org/atomic/
Redirect 302 "/ostree/27" "https://kojipkgs.fedoraproject.org/atomic/repo"

View file

@ -17,13 +17,6 @@ RequestHeader unset Expect early
ProxyPreserveHost On
{% endif %}
# This is to deal with a broken ostree (actually libcurl) that doesn't work well with ostree
# The only remaining image with this bug is F27 Fedora Atomic Workstation
# Can be nuked after F28 GA
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^ostree\ $
RewriteRule ^/ostree/27/(.*)$ http://brokenostreekojipkgs.fedoraproject.org/ostree/27/$1 [L,R=302]
{% if 'phx2' in inventory_hostname %}