Finally I got the solution.
I executed nginx -T.
It shows me the loaded configuration. using this, I came to know about the file which was actully overriding all the custom configuration.
So, I added my custom config in it.
proxy_read_timeout 1800s
fastcgi_read_timeout 1800s