Use directive value inside nginx.conf

Hi!

I need to send to my application through “fastcgi_param” the value of
“client_max_body_size” directive, which is defined in http block in
nginx.conf
Is there any way to do this without moving the declaration of that
directive
from http block?

So I have this:

http {

client_max_body_size 5m;

}

And need this:

server {

location xxx {
fastcgi_param SOME_NAME ;
}

}

Thanks!

Posted at Nginx Forum: