On 9/2/19 8:51 AM, Richard Shaw wrote:
\/fedora\/linux\/releases\/([0-9]+)\/Everything/x86_64\/(.*)$
http://repo.mirrors.squid.internal/fedora/releases/$1/$2
\/fedora\/linux\/updates\/([0-9]+)\/x86_64\/(.*)$
http://repo.mirrors.squid.internal/fedora/updates/$1/$2
There's got to be a proper and generic way of doing this. Keeping up
with a list of mirrors isn't sustainable.
The bigger problem is that most mirrors default to using https which you
can't cache with a proxy.
I'd be willing to create a new project to try and come up with a
package
that would automagically get this working but I'd need a lot of help...
I have a proxy that I made myself which is a rather ugly hack (but it
mostly works). It returns an error for https attempts forcing dnf to
retry with the http version.
What would really be useful is for a dnf plugin to be able to intercept
download requests, but it doesn't appear to be possible. They go
straight to curl. It's possible that I missed something, so if anyone
knows differently, please let me know.