Merge pull request #530 from dmcgowan/fix-compose-nginx

Remove set header in compose script
This commit is contained in:
Stephen Day
2015-05-18 13:11:28 -07:00

View File

@@ -26,8 +26,10 @@ server {
return 404;
}
# The docker client expects this header from the /v2/ endpoint.
more_set_headers 'Docker-Distribution-Api-Version: registry/2.0';
# To add basic authentication to v2 use auth_basic setting plus add_header
# auth_basic "registry.localhost";
# auth_basic_user_file test.password;
# add_header 'Docker-Distribution-Api-Version' 'registry/2.0' always;
include docker-registry-v2.conf;
}