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 <andymeredith@gmail.com>
This commit is contained in:
Andrew Meredith 2015-12-02 23:41:05 -07:00 committed by Andrew Meredith
parent b66bb1287c
commit 6357b02236

View file

@ -74,7 +74,7 @@ upstream docker-registry {
## The registry always sets this header. ## The registry always sets this header.
## In the case of nginx performing auth, the header will be unset ## In the case of nginx performing auth, the header will be unset
## since nginx is auth-ing before proxying. ## 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' ''; 'registry/2.0' '';
default registry/2.0; default registry/2.0;
} }