From 1e0932cf7f3836d435700ec30958f829e140e3b4 Mon Sep 17 00:00:00 2001 From: Ronaldo Richieri Date: Thu, 14 Dec 2023 10:52:04 -0300 Subject: [PATCH] Add a note about the nginx client_max_body_size directive NGINX has a default limit of 1MB on the size of the request body. This can be increased by setting the client_max_body_size directive in the nginx.conf file. Since RT standardly accepts attachments of up to 10MB, it is necessary to increase the limit in NGINX to make them compatible. --- docs/web_deployment.pod | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/web_deployment.pod b/docs/web_deployment.pod index d186800bc2f..91f05ab7cbd 100644 --- a/docs/web_deployment.pod +++ b/docs/web_deployment.pod @@ -195,6 +195,8 @@ With the nginx configuration: access_log /var/log/nginx/access.log; location / { + client_max_body_size 10M; + fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; @@ -220,6 +222,10 @@ With the nginx configuration: } +B: If you want to increase the maximum upload size by changing the +C<$MaxAttachmentSize> setting in F, you will also need to +increase the C setting in the nginx configuration. + =head2 lighttpd server.modules += ( "mod_fastcgi" )