aboutsummaryrefslogtreecommitdiffstats
path: root/docker/nginx/sites-enabled/default
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-08-09 07:21:46 -0400
committerxudan <xudan16@huawei.com>2018-08-09 07:21:46 -0400
commite2e5f5e2c53c03630b3128796bd7db7809bd93bd (patch)
tree900169483279d2316e631e0b6bbeee90359c1a9d /docker/nginx/sites-enabled/default
parent83baa439b74976a77799086b3d8dc2246603da01 (diff)
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 <xudan16@huawei.com>
Diffstat (limited to 'docker/nginx/sites-enabled/default')
-rw-r--r--docker/nginx/sites-enabled/default1
1 files changed, 1 insertions, 0 deletions
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;