Enlarge the file size allowed to be uploaded 69/60769/1
authorxudan <xudan16@huawei.com>
Thu, 9 Aug 2018 11:21:46 +0000 (07:21 -0400)
committerxudan <xudan16@huawei.com>
Thu, 9 Aug 2018 11:21:46 +0000 (07:21 -0400)
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 <xudan16@huawei.com>
docker/nginx/sites-enabled/default

index e2e718c..aa81bd4 100644 (file)
@@ -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;