Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move client_max_body_size from default.conf to nginx.conf #658

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

brdns
Copy link

@brdns brdns commented Nov 26, 2024

  • Module ngx_http_core_module
  • add client_body_buffer_size
  • prevents the following logs for each upload : [warn] a client request body is buffered to a temporary file

…conf (https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size )

add client_body_buffer_size

prevents the following logs: [warn] a client request body is buffered to a temporary file
@brdns brdns changed the title client_max_body_size is a parameter of nginx.conf and not of default.conf move client_max_body_size from default.conf to nginx.conf Nov 26, 2024
Brandon added 2 commits November 26, 2024 16:22
Increase allowed memory usage of main container from 512M to 1G

This is useful particularly if the server uses a hard drive, which can drastically slow down pdf generation during swap
@turbo124 turbo124 merged commit 3024f11 into invoiceninja:debian Nov 27, 2024
1 check passed
@turbo124
Copy link
Member

Thanks!

@benbrummer
Copy link
Collaborator

@brdns may I ask how big are the files, which you upload?

I think about a sufficient configuation for invoiceninja should be

nginx

client_max_body_size = 20

php-fpm

client_body_buffer_size = 20M
post_max_size = 20M
upload_max_filesize = 20M => post_max_size will be the limit, as the header-size is included

@brdns
Copy link
Author

brdns commented Dec 1, 2024

Hello @benbrummer , I’ve got it set to 10M all around. I’ve kept it at 100M only in the pull request since it was the default value here. You’re probably right, 20M should be enough for most use cases.

@benbrummer
Copy link
Collaborator

@brdns 10M should be a good default. Do you have some recommendation regarding php memory_limit. I have no issues with the default 128M.

@brdns brdns deleted the debian-dev branch December 3, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants