mirror of
https://github.com/distribution/distribution.git
synced 2025-09-01 15:07:25 +00:00
Merge pull request #446 from moxiegirl/update-per-397
Updating configuration with required header
This commit is contained in:
@@ -25,6 +25,9 @@ server {
|
||||
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
# The docker client expects this header from the /v2/ endpoint.
|
||||
more_set_headers 'Docker-Distribution-Api-Version: registry/2.0';
|
||||
|
||||
include docker-registry-v2.conf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user