I noticed that when someone sends big file to Apache website proxied by Nginx, disk usage on Nginx machine goes up. It's especially noticeable when someone uploads file that is big comparing to disk size of Nginx machine. It rises obvious questions – what if someone uploaded lets say 500gb file while Nginx VM has only 10gb drive. It's not that much abstract scenario considering that it's our private cloud that we use for sending VM images (.vmdk or .ova files) which usually have 10+ gigabytes.
I'm already using:
proxy_buffering off; proxy_no_cache 1;
in http scope. But it doesn't seem to affect uploaded files (only downloaded ones). Is it possible to disable POST caching?