I need some suggestions on how to fetch dynamically generated files via jobs running on my remote job server to my frontend server running a user panel to manage jobs.
I do not want my job server's IP to be exposed so allowing user to directly download from the job server is undesired.
I would also need some Jquery library to show download speed, a progress bar of some sort.
I think it would help to know the answers to a few questions.
Off the top of my head:
Edit:
jQuery UI has a progress bar. (docs)
From your user panel you would have a link like this:
<a href="remoteTxtFile.php?file_id=100">File 100</a>
This link should start a jQuery.getJSON() request to remoteTxtFile.php on your frontend server, which:
I'm not sure what you should use for the actual downloading of files. The problem with using PHP and stream_notification_callback to do the download (and output progress) is that the entire file would be downloaded into memory, which is no good for a 1 GB file.
Perhaps using wget to do the actual download would work better.