Add configurable maximum layer size in nginx
This commit is contained in:
parent
76de324ca8
commit
dd35677712
3 changed files with 12 additions and 11 deletions
|
@ -109,7 +109,7 @@ location ~ ^/v2 {
|
|||
proxy_pass http://registry_app_server;
|
||||
proxy_temp_path /tmp 1 2;
|
||||
|
||||
client_max_body_size 20G;
|
||||
client_max_body_size {{ maximum_layer_size }};
|
||||
}
|
||||
|
||||
location ~ ^/v1 {
|
||||
|
@ -127,7 +127,7 @@ location ~ ^/v1 {
|
|||
proxy_pass http://registry_app_server;
|
||||
proxy_temp_path /tmp 1 2;
|
||||
|
||||
client_max_body_size 20G;
|
||||
client_max_body_size {{ maximum_layer_size }};
|
||||
}
|
||||
|
||||
location /v1/_ping {
|
||||
|
|
Reference in a new issue