I was able to work around this for my purposes by leaving proxy_buffering enabled and turning it off only for some locations, but it feels like a dirty hack. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271834,271835#msg-271835