From: xudan Date: Thu, 9 Aug 2018 11:21:46 +0000 (-0400) Subject: Enlarge the file size allowed to be uploaded X-Git-Tag: ovp-2.0.0~18 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=e2e5f5e2c53c03630b3128796bd7db7809bd93bd;p=dovetail-webportal.git Enlarge the file size allowed to be uploaded It will failed to upload the results file. Error code "413 (Request Entity Too Large)" Enlarge it to be 20M. Change-Id: Ia1f1d8aa4c104acdffdfd1ff60325631209a2618 Signed-off-by: xudan --- diff --git a/docker/nginx/sites-enabled/default b/docker/nginx/sites-enabled/default index e2e718c..aa81bd4 100644 --- a/docker/nginx/sites-enabled/default +++ b/docker/nginx/sites-enabled/default @@ -96,6 +96,7 @@ server { } location ~* /api/v1/results/([a-zA-Z0-9]+) { + client_max_body_size 20m; proxy_pass http://cvpapi/api/v1/results/$1; proxy_set_header X-Real_IP $remote_addr; proxy_set_header Host $host;