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 is pretty simple. Here is the snippet that you would need. proxy_cache_path /var/cache/nginx/yum levels=1:2 keys

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论