As the config shows, there're mirrors for archlinux, archlinuxcn and archlinuxarm in China so I don't want to set a global http_proxy to waste my proxy bandwidth, but repo 7Ji uses Github releases as storage and it is hard to access without a proxy in China, so I want to use proxy for and only for repo 7Ji.
This adds a feature with which
http_proxy
could be set on a per-repo basis.This is useful if pacoloco runs on a server where most of the repos it serve are easy to access, but some others are not, e.g.:
E.g. this is my config:
As the config shows, there're mirrors for
archlinux
,archlinuxcn
andarchlinuxarm
in China so I don't want to set a globalhttp_proxy
to waste my proxy bandwidth, but repo7Ji
uses Github releases as storage and it is hard to access without a proxy in China, so I want to use proxy for and only for repo7Ji
.