Merge pull request #3105 from jzelinskie/no-catalog

nginx: temporarily disable catalog for production
This commit is contained in:
Jimmy Zelinskie 2018-06-05 16:08:23 -04:00 committed by GitHub
commit 98ffdf0e84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,6 +136,10 @@ location ~ ^/v2 {
client_max_body_size {{ maximum_layer_size }}; client_max_body_size {{ maximum_layer_size }};
} }
location /v2/_catalog {
return 400;
}
location ~ ^/v1 { location ~ ^/v1 {
# Setting ANY header clears all inherited proxy_set_header directives # Setting ANY header clears all inherited proxy_set_header directives
proxy_set_header X-Forwarded-For $proper_forwarded_for; proxy_set_header X-Forwarded-For $proper_forwarded_for;