forked from TrueCloudLab/distribution
Update nginx.md
Fixes a huge problem where a nginx variable was not escaped and nginx was adding the literal string "always" to all requests. The most obvious result was that basic auth was entirely broken. Signed-off-by: Carson Anderson <ca@carson-anderson.com>
This commit is contained in:
parent
7a584f21b8
commit
2c2fbc4c24
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ server {
|
|||
|
||||
## If $docker_distribution_api_version is empty, the header will not be added.
|
||||
## See the map directive above where this variable is defined.
|
||||
add_header 'Docker-Distribution-Api-Version' $docker_distribution_api_version always;
|
||||
add_header 'Docker-Distribution-Api-Version' \$docker_distribution_api_version always;
|
||||
|
||||
proxy_pass http://docker-registry;
|
||||
proxy_set_header Host \$http_host; # required for docker client's sake
|
||||
|
|
Loading…
Reference in a new issue