From 6357b02236734bcf4de46c9e93f98d6cc45ea25c Mon Sep 17 00:00:00 2001 From: Andrew Meredith Date: Wed, 2 Dec 2015 23:41:05 -0700 Subject: [PATCH] Escape dollar signs If this example was copied and pasted, the shell would try to interpolate `$upstream_http_docker_distribution_api_version` and `$docker_distribution_api_version`. Signed-off-by: Andrew Meredith --- docs/nginx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/nginx.md b/docs/nginx.md index 720ff0eee..1e43d0e3d 100644 --- a/docs/nginx.md +++ b/docs/nginx.md @@ -74,7 +74,7 @@ upstream docker-registry { ## The registry always sets this header. ## In the case of nginx performing auth, the header will be unset ## since nginx is auth-ing before proxying. -map $upstream_http_docker_distribution_api_version $docker_distribution_api_version { +map \$upstream_http_docker_distribution_api_version \$docker_distribution_api_version { 'registry/2.0' ''; default registry/2.0; }