Browse Source

Merge "Handle containers with no namespace"

changes/85/774185/1
Zuul 9 months ago
committed by Gerrit Code Review
parent
commit
bdff2f28ab
  1. 10
      tripleo_ansible/roles/tripleo_image_serve/templates/image-serve.conf.j2

10
tripleo_ansible/roles/tripleo_image_serve/templates/image-serve.conf.j2

@ -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>

Loading…
Cancel
Save