location /downloads/ { proxy_buffering off; proxy_pass https://remote.example.com/downloads/; }