Move registry redirects rules to reverseproxy
This commit is contained in:
parent
351066d106
commit
926b12b2a5
2 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue