Merge pull request #2458 from jzelinskie/nginx

conf/nginx: add cnr path
This commit is contained in:
Jimmy Zelinskie 2017-03-23 13:07:59 -04:00 committed by GitHub
commit 63e38ba9e0

View file

@ -87,6 +87,18 @@ location ~ ^/v2/(.+)/_trust/tuf/(.*)$ {
} }
{% endif %} {% endif %}
location ~ ^/cnr {
proxy_buffering off;
proxy_request_buffering off;
proxy_pass http://registry_app_server;
proxy_read_timeout 120;
proxy_temp_path /tmp 1 2;
limit_req zone=repositories burst=10;
}
location ~ ^/v2 { location ~ ^/v2 {
# If we're being accessed via v1.quay.io, pretend we don't support v2. # If we're being accessed via v1.quay.io, pretend we don't support v2.
if ($host = "v1.quay.io") { if ($host = "v1.quay.io") {