Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Quick Question]The usage of local repository #111

Open
TommyLike opened this issue Jan 27, 2021 · 3 comments
Open

[Quick Question]The usage of local repository #111

TommyLike opened this issue Jan 27, 2021 · 3 comments

Comments

@TommyLike
Copy link

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?

@fauust
Copy link
Contributor

fauust commented Nov 19, 2021

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

@ott
Copy link
Contributor

ott commented Sep 17, 2022

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
Copy link
Contributor

ott commented Sep 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants