This is an automated email from the ASF dual-hosted git repository.

mhamann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-apigateway.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d1fbf5  Fix max body size limit (#365)
4d1fbf5 is described below

commit 4d1fbf5cfb4d08cf0a5005e93a76fe9dd95fd725
Author: Matt Hamann <[email protected]>
AuthorDate: Wed Dec 4 15:49:46 2019 -0500

    Fix max body size limit (#365)
    
    * Fix file upload size limit
    
    * Remove trailing whitespace
---
 conf.d/managed_endpoints.conf | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/conf.d/managed_endpoints.conf b/conf.d/managed_endpoints.conf
index 7df79a4..71336f0 100644
--- a/conf.d/managed_endpoints.conf
+++ b/conf.d/managed_endpoints.conf
@@ -37,6 +37,9 @@ server {
     access_log /var/log/api-gateway/access.log platform;
     error_log /var/log/api-gateway/gateway_error.log debug;
 
+    # Allow payloads of up to 5MB
+    client_max_body_size 5m;
+
     # include environment variable
 
     error_page 500 501 502 503 504 /50x.html;
@@ -72,7 +75,6 @@ server {
         set $responseBody '';
 
         proxy_read_timeout 70s;
-        client_max_body_size 5m;
 
         access_by_lua_block {
             local routing = require "routing"

Reply via email to