Caching RPM repositories with Nginx

I’ve been work in a project that requires installation of a huge amount of packages during testing. I usually setup the upstream repostiories, the problem with this is that it keep downloading the same package again and again and a lot of time and network bandwith could be saved if the packages were cached locally. Today I decided to spend some minutes looking into how to do it with nginx. And it…