I'm trying to stream a file from a remote server to the client. But it seems as though the buffers are messing with something causing the download speed to be much higher than the download speed.
with php fpm as backend upstream sock file.
Remote server -> Nginx server -> Client
How can I have Nginx stream the remote file in a 1:1 ratio?
i dont want nginx first buffer and then send it to me.
But synchronously.
I have mounted rclone /drive as
nextcloud external storage
when i start to download some big file i see it in bmon that my vps is downloading it and serving to me. But when i cancel it, it still is downloading until whole file is loaded somewhere into memory. I have to do service php7.0-fpm restart to make it stop downloading. service nginx restart do nothing.
but i cant find solution, i have every proxy off buffering, still doesnt help.
Please help thanks.