mirrors icon indicating copy to clipboard operation
mirrors copied to clipboard

Add the ability to filter mirrorlist by protocol type (ie only get HTTPS mirrors).

Open ladar opened this issue 2 years ago • 5 comments

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

ladar avatar Aug 03 '22 20:08 ladar

This is a great suggestion. @soksanichenko let's make this happen :)

jonathanspw avatar Aug 17 '22 14:08 jonathanspw

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 :(

soksanichenko avatar Aug 17 '22 14:08 soksanichenko

Ticklme me Elmo. Or should I say @soksanichenko ... are you still swamped?

ladar avatar Dec 08 '22 08:12 ladar

Yep, sorry I'm still swamped.

soksanichenko avatar Dec 08 '22 12:12 soksanichenko

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.

jonathanspw avatar Dec 13 '22 23:12 jonathanspw