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

Default for maxBodySize is too low #20

Open
tspearconquest opened this issue Jun 6, 2023 · 2 comments
Open

Default for maxBodySize is too low #20

tspearconquest opened this issue Jun 6, 2023 · 2 comments

Comments

@tspearconquest
Copy link

Hi,

We recently added this plugin to our services and had no issues until we tried to upload a large file, upon which we were getting the error body max limit reached: http: request body too large

It took quite some googling to find out that it was the default value of this plugin causing the problem, especially considering that Traefik themselves has stated that there is no hard coded limits in Traefik.

This changes their default from no limit to a pre-set limit which, while configurable, is too low for todays modern web application requests in the enterprise, wherein docker images and other files that are passed into an API for automation purposes are hundreds of MB.

It would be appreciated if this plugin were to follow more closely with upstream Traefik's defaults by raising the maxBodyLimit default value to at least 1GB.

@acouvreur
Copy link
Owner

As stated in the readme:

Note: body of every request will be buffered in memory while the request is in-flight (i.e.: during the security check and during the request processing by traefik and the backend), so you may want to tune maxBodySize depending on how much RAM you have.

Im not sure setting the default value to 1gb would be a good idea. Think of low powered devices such as rpi. Some just have 1gb of ram.

What do you think ?

@tspearconquest
Copy link
Author

tspearconquest commented Jun 7, 2023 via email

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

No branches or pull requests

2 participants