Enable rate limiting of V2 requests
This commit is contained in:
parent
df4ab8565c
commit
31fdb94436
2 changed files with 4 additions and 2 deletions
|
@ -30,10 +30,10 @@ location /realtime {
|
|||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
# At the begining and end of a push/pull, /v1/repositories is hit by the Docker
|
||||
# At the begining and end of a push/pull, (/v1/repositories|/v2/auth/) is hit by the Docker
|
||||
# client. By rate-limiting just this endpoint, we can avoid accidentally
|
||||
# blocking pulls/pushes for images with many layers.
|
||||
location /v1/repositories/ {
|
||||
location ~ ^/(v1/repositories|v2/auth)/ {
|
||||
proxy_buffering off;
|
||||
|
||||
proxy_request_buffering off;
|
||||
|
|
Reference in a new issue