another try on registry redirection
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
This commit is contained in:
parent
9495fde3f4
commit
2b4de7b85d
2 changed files with 10 additions and 6 deletions
|
@ -926,3 +926,13 @@
|
||||||
tags:
|
tags:
|
||||||
- cle
|
- cle
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
|
# old registry.fedoraproject.org web interface
|
||||||
|
- role: httpd/redirectmatch
|
||||||
|
shortname: reg-server-stg
|
||||||
|
website: registry.fedoraproject.org
|
||||||
|
regex: ^(index\.html|repo(.)*)?$
|
||||||
|
target: https://quay.io/organization/fedora/
|
||||||
|
when: env == 'staging'
|
||||||
|
tags:
|
||||||
|
- registry
|
||||||
|
|
|
@ -23,12 +23,6 @@ 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]
|
RewriteRule ^/v2/(.*)/blobs/([a-zA-Z0-9:]*) https://cdn.registry.fedoraproject.org/v2/$1/blobs/$2 [R]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if env == "staging" %}
|
|
||||||
# registry.fedoraproject.org web interface previously served by reg-server
|
|
||||||
RewriteCond %{HTTP_HOST} ^registry\{{env_suffix}}\.fedoraproject\.org$
|
|
||||||
RewriteRule ^(index\.html|repo(.)*)?$ https://quay.io/organization/fedora/ [R=301,L]
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
# This is terible, but Docker.
|
# This is terible, but Docker.
|
||||||
RewriteCond %{REQUEST_METHOD} ^(PATCH|POST|PUT|DELETE)$
|
RewriteCond %{REQUEST_METHOD} ^(PATCH|POST|PUT|DELETE)$
|
||||||
{% if env == "production" %}
|
{% if env == "production" %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue