Improve comments in docker proxy config

This comment was unclear.  Replace it with some potentially more
useful comments.

Change-Id: Ib9215eb33f01e1ed2b4be394d2d43ab72f37ee50
This commit is contained in:
James E. Blair 2019-02-21 11:26:49 -08:00
parent e3170854f9
commit d38fcda214

View File

@ -283,6 +283,7 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
</VirtualHost> </VirtualHost>
# Docker registry v1 proxy.
<VirtualHost <%= @vhost_name %>:8081> <VirtualHost <%= @vhost_name %>:8081>
ServerName <%= @srvname %>:8081 ServerName <%= @srvname %>:8081
<% if @serveraliases.is_a? Array -%> <% if @serveraliases.is_a? Array -%>
@ -345,6 +346,7 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
</VirtualHost> </VirtualHost>
# Docker registry v2 proxy.
<VirtualHost <%= @vhost_name %>:8082> <VirtualHost <%= @vhost_name %>:8082>
ServerName <%= @srvname %>:8082 ServerName <%= @srvname %>:8082
<% if @serveraliases.is_a? Array -%> <% if @serveraliases.is_a? Array -%>
@ -400,9 +402,6 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
ProxyPass "/cloudflare/" "https://production.cloudflare.docker.com/" ttl=120 keepalive=On retry=0 ProxyPass "/cloudflare/" "https://production.cloudflare.docker.com/" ttl=120 keepalive=On retry=0
ProxyPassReverse "/cloudflare/" "https://production.cloudflare.docker.com/" ProxyPassReverse "/cloudflare/" "https://production.cloudflare.docker.com/"
# NOTE(SamYaple): Docker has historically not allowed to have anything in
# the URI, but it wasn't enforced until they started validating the config
# in docker-ce 17.10. Prior to that, it was working fine.
# NOTE(corvus): Ensure this stanza is last since it's the most # NOTE(corvus): Ensure this stanza is last since it's the most
# greedy match. # greedy match.
CacheEnable disk "/" CacheEnable disk "/"