nginx body max size code example
Example 1: nginx max request size
# Set max body to 100MB
client_max_body_size 100M;
# Or for unlimited:
client_max_body_size 0;
Example 2: client_max_body_size
http {
...
client_max_body_size 200M;
}
# Set max body to 100MB
client_max_body_size 100M;
# Or for unlimited:
client_max_body_size 0;
http {
...
client_max_body_size 200M;
}