Merge "Handle containers with no namespace"

This commit is contained in:
Zuul 2021-02-04 01:13:53 +00:00 committed by Gerrit Code Review
commit bdff2f28ab
1 changed files with 10 additions and 0 deletions

View File

@ -28,4 +28,14 @@ Listen {{ tripleo_container_registry_port }}
Header set Cache-Control "max-age=31536000"
Header set Content-Type "application/octet-stream"
</LocationMatch>
<LocationMatch "^/v2/.*/blobs/sha256:.*$">
SetEnvIf Request_URI "sha256:(.*)$" digest=sha256:$1
Header set Docker-Content-Digest "%{digest}e"
Header set ETag "%{digest}e"
Header set Cache-Control "max-age=31536000"
Header set Content-Type "application/octet-stream"
</LocationMatch>
</VirtualHost>