diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.registry-centos.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.registry-centos.conf new file mode 100644 index 0000000000..eaf39b36c2 --- /dev/null +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.registry-centos.conf @@ -0,0 +1,33 @@ +RewriteEngine on + +RewriteRule ^/v2/latest/(.*) /v2/f27/$1 [R,L] + +{% if env == "staging" %} +RewriteRule ^/v2/(.*) /v2/centos/$1 +{% endif %} + +RewriteRule ^/signatures/(.*) /srv/web/registry-signatures/$1 [L] + + + Require all granted + + +{% include './reversepassproxy.registry-generic.conf' %} + +# Write access to docker-deployer only +{% if env == "staging" %} + + + Require user docker-registry-internal-stg + + + + Require all denied + + +{% else %} + + + require valid-user + +{% endif %}