forked from TrueCloudLab/distribution
Merge pull request #530 from dmcgowan/fix-compose-nginx
Remove set header in compose script
This commit is contained in:
commit
316f3c5831
1 changed files with 5 additions and 3 deletions
|
@ -25,9 +25,11 @@ server {
|
||||||
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# The docker client expects this header from the /v2/ endpoint.
|
# To add basic authentication to v2 use auth_basic setting plus add_header
|
||||||
more_set_headers 'Docker-Distribution-Api-Version: registry/2.0';
|
# 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;
|
include docker-registry-v2.conf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue