From f0a05b3137d66cb8165e805e0daa83ab00dcf115 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Thu, 29 Dec 2016 20:45:34 -0300 Subject: [PATCH] Change default upload limit to unlimited --- controllers/nginx/configuration.md | 2 +- controllers/nginx/pkg/config/config.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/nginx/configuration.md b/controllers/nginx/configuration.md index 8a65d1949..0555aff4f 100644 --- a/controllers/nginx/configuration.md +++ b/controllers/nginx/configuration.md @@ -315,7 +315,7 @@ The next table shows the options, the default value and a description |name |default| |---------------------------|------| -|body-size|1m| +|body-size|0 (unlimited)| |custom-http-errors|" "| |enable-sticky-sessions|"false"| |enable-vts-status|"false"| diff --git a/controllers/nginx/pkg/config/config.go b/controllers/nginx/pkg/config/config.go index 8afeca499..dfdd7cb19 100644 --- a/controllers/nginx/pkg/config/config.go +++ b/controllers/nginx/pkg/config/config.go @@ -28,7 +28,8 @@ import ( const ( // http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size // Sets the maximum allowed size of the client request body - bodySize = "1m" + // Default: unlimited. + bodySize = "0" // http://nginx.org/en/docs/ngx_core_module.html#error_log // Configures logging level [debug | info | notice | warn | error | crit | alert | emerg]