mirrorbits icon indicating copy to clipboard operation
mirrorbits copied to clipboard

[Quick Question]The usage of local repository

Open TommyLike opened this issue 3 years ago • 3 comments

Question I tried a simple mirrorbits server based on the sample configuration and go checked the source code, then I found the local repository(configured via Repository) is only used for checksum and scaning mirror repos, not for download directly. Therefore I have a question regarding this. What's the correct case for using mirrobits? This is what I have in mind, considering I have a main repo which will rysnc artificats to A B C three mirror repos. I can deploy the mirrorbits along with main repo but exposed via another port and use mirrorbit to route requests to mirror repos or fallback to the main repo?

TommyLike avatar Jan 27 '21 01:01 TommyLike

Hi! Please take a look at https://github.com/etix/mirrorbits/issues/105 and particularly at https://jellyfin.org/posts/mirrorbits-cdn/

fauust avatar Nov 19 '21 11:11 fauust

Mirrorbits is intended to be a download redirector. You can of course install it on a different port on the primary mirror. Assume that example.com is a mirror that serves its files via HTTPS on port 443. Then you can install Mirrorbits on the same server on a different port, for example 8080, and add https://example.com/ and possibly other mirrors to it. Download requests on port 8080 will then be redirected to one of the mirrors, including http://example.com/.

ott avatar Sep 17 '22 22:09 ott

@TommyLike Can you close this issue if your question has been answered?

ott avatar Sep 17 '22 22:09 ott