Skip to content

proxy-body-size allow gigabyte indentifier #666

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

Open
dark0ni opened this issue Apr 30, 2025 · 3 comments
Open

proxy-body-size allow gigabyte indentifier #666

dark0ni opened this issue Apr 30, 2025 · 3 comments
Labels

Comments

@dark0ni
Copy link

dark0ni commented Apr 30, 2025

Describe the feature you'd like to add to nginx

proxy-body-size allow for example 1024m as value. It would be great for better readability to allow value like 1Gi

I dont know it is already implemented but the documentation example only show megabyte as value identifier
https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size

Describe the problem this feature solves

Allow values like 10gi or then already implemented add information to documentation

@HanadaLee
Copy link

Image

The client_max_body_size directive is parsed using ngx_conf_set_off_slot and supports g or G

https://nginx.org/en/docs/syntax.html
Offsets can be also specified in gigabytes using the g or G suffixes.

However, most directives do not support g units.

@dark0ni
Copy link
Author

dark0ni commented Apr 30, 2025

@HanadaLee thank you for the informations. :) I think it would be great to reference this link in the documentation for proxy-body-size 👍🏻

@pluknet
Copy link
Contributor

pluknet commented May 2, 2025

nginx doesn't have a notion of proxy-body-size, please be more specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants