diff options
author | Dan Xu <xudan16@huawei.com> | 2018-08-28 06:19:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-28 06:19:52 +0000 |
commit | 69cd23909dfb3a39811d5052d2a8292c118ce5b3 (patch) | |
tree | b52cf4ce0ff81e4b4ee0810b121054dc75fbe012 /docker | |
parent | f1c68bdae1d5271867cf6fa8438deb99c9d7fa34 (diff) | |
parent | 110806aee13cc125fa38ff528e80570196de4a22 (diff) |
Merge "Homogenize file size error from nginx with python errors"
Diffstat (limited to 'docker')
-rw-r--r-- | docker/nginx/sites-enabled/default | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/nginx/sites-enabled/default b/docker/nginx/sites-enabled/default index aa81bd4..bc671b7 100644 --- a/docker/nginx/sites-enabled/default +++ b/docker/nginx/sites-enabled/default @@ -124,6 +124,12 @@ server { expires 1d; } + error_page 413 =200 /413.json; + + location /413.json { + return 200 '{"msg": "Please upload a file less than 20MB.", "code": 413}'; + } + # Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests #location /RequestDenied { # proxy_pass http://127.0.0.1:8080; |