GOLANG - how to change serve http to nginx with possible seeking for video streaming?

I would like to know, how to change this file:

to make it possible to seek, stream files with rewinds, not only to download as it is now with http.Server.


probably have to use another function than io.Copy

I’ve implemented this now in in rclone serve http remote:path

https://beta.rclone.org/v1.38-083-g68d0b5ad/ (uploaded in 15-30 mins)