Add configurable maximum layer size in nginx

This commit is contained in:
Joseph Schorr 2017-02-27 13:03:20 -05:00
parent 76de324ca8
commit dd35677712
3 changed files with 12 additions and 11 deletions

View file

@ -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 {