Move registry redirects rules to reverseproxy

This commit is contained in:
Mattia Verga 2025-01-17 11:05:47 +01:00 committed by kevin
parent 351066d106
commit 926b12b2a5
2 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,3 @@ RewriteRule ^/([^/]+/)?(keys|verify)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,
RewriteCond %{HTTP_REFERER} .*fedorproject.*
RewriteRule .* http://mmcgrath.fedorapeople.org/spam.html [R=301,L]
# registry.fedoraproject.org web interface previously served by reg-server
RewriteCond %{HTTP_HOST} ^registry\.fedoraproject\.org$
RewriteRule ^(index\.html|repo(.)*)?$ https://quay.io/organization/fedora/ [R=301,L]

View file

@ -23,6 +23,10 @@ RewriteCond expr "! -R '10.3.171.0/24'"
RewriteRule ^/v2/(.*)/blobs/([a-zA-Z0-9:]*) https://cdn.registry.fedoraproject.org/v2/$1/blobs/$2 [R]
{% endif %}
# registry.fedoraproject.org web interface previously served by reg-server
RewriteCond %{HTTP_HOST} ^registry\.fedoraproject\.org$
RewriteRule ^(index\.html|repo(.)*)?$ https://quay.io/organization/fedora/ [R=301,L]
# This is terible, but Docker.
RewriteCond %{REQUEST_METHOD} ^(PATCH|POST|PUT|DELETE)$
{% if env == "production" %}