mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
oci-registry: also allow cloudfront to access the registry directly
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -6,6 +6,7 @@ ProxyPreserveHost On
|
||||
|
||||
{% if env == "production" %}
|
||||
RewriteCond %{HTTP:VIA} !cdn77
|
||||
RewriteCond %{HTTP:VIA} !cloudfront
|
||||
RewriteCond %{SERVER_NAME} !^registry-no-cdn\.fedoraproject.org$
|
||||
RewriteCond %{REQUEST_METHOD} !^(PATCH|POST|PUT|DELETE|HEAD)$
|
||||
RewriteRule ^/v2/(.*)/blobs/([a-zA-Z0-9:]*) https://cdn.registry.fedoraproject.org/v2/$1/blobs/$2 [R]
|
||||
|
||||
Reference in New Issue
Block a user