Mailing List Archive

rt branch 5.0/pod-update-nginx-client-max-body-size created. rt-5.0.5-83-g1e0932cf7f
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/pod-update-nginx-client-max-body-size has been created
at 1e0932cf7f3836d435700ec30958f829e140e3b4 (commit)

- Log -----------------------------------------------------------------
commit 1e0932cf7f3836d435700ec30958f829e140e3b4
Author: Ronaldo Richieri <ronaldo@bestpractical.com>
Date: Thu Dec 14 10:52:04 2023 -0300

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.

diff --git a/docs/web_deployment.pod b/docs/web_deployment.pod
index d186800bc2..91f05ab7cb 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<NOTE>: If you want to increase the maximum upload size by changing the
+C<$MaxAttachmentSize> setting in F<RT_SiteConfig.pm>, you will also need to
+increase the C<client_max_body_size> setting in the nginx configuration.
+
=head2 lighttpd

server.modules += ( "mod_fastcgi" )

-----------------------------------------------------------------------


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit