I have two servers, let's call them
file_storage.com. (They may be located on two physically different machines, or just be a different Docker containers on one server.)
file_storage.com server stores some video files;
website.com server has a feature that allows to create a playlist with some of these files and to play this playlist. For giving an access to these files I have two options (both should work):
- Nginx, configured on
file_storage.comserver, that allows to receive files by links like
- SSH tunnel between servers, that allows to receive files from
file_storageserver by links like
Now, when I'm using direct access to
file_storage.com, everything works fine: playlist are being played smoothly, and there are no problems with downloading and playing of a single video file.
But when I'm trying to create a playlist, using tunnels, it does not work properly. Videos may look corrupted, or they are being played faster than their real speed, or playlist may stuck at all after some video and don't play further.
So, I would like to know: what can I check to find out what goes wrong when I'm trying to play/download videos through tunnel?
Additional note: we also have a feature of playing video streams through such tunnels, and it does not have such problems. But for streams this problem has been solved by enforcing
tcp protocol usage (they used
udp by default). So, it should not be applicable to problem with files, because they are using tcp already.