mirrors
mirrors copied to clipboard
Add the ability to filter mirrorlist by protocol type (ie only get HTTPS mirrors).
I've been all over the code, and I can't find a route inside mirror listing code (on the mirrors_service branch) that will let me filter the results by protocol.
I would like to update the DNF repo config mirrorlist URL so it only retrieves and uses HTTPS capable mirrors.
With the Fedora mirror service, it's possible to filter the results by appending &protocol=https
to the mirrorlist URL. For example, to get a list of HTTPS mirrors for the EPEL repo, you could use:
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir&protocol=https
Or to get a list HTTPS mirrors for the Fedora 36 repo:
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch&protocol=https
This is a great suggestion. @soksanichenko let's make this happen :)
I agree, it's great suggestion. I will implement it as soon as I will free from another AL related urgent tasks. I'm sorry :(
Ticklme me Elmo. Or should I say @soksanichenko ... are you still swamped?
Yep, sorry I'm still swamped.
There was a request in Mattermost last night to support something like "?country=US" or similar. Perhaps it should be part of this as well to support requesting mirrors in a specific country based on 2-letter country codes.