From 2c2fbc4c245250df92fd7772ac515e50dbfb2c7d Mon Sep 17 00:00:00 2001 From: Carson A Date: Mon, 7 Dec 2015 15:47:51 -0700 Subject: [PATCH] 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 --- docs/nginx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/nginx.md b/docs/nginx.md index 1e43d0e3d..940449228 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -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