dragonflyoss / Dragonfly2

Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
https://d7y.io
Apache License 2.0
2.22k stars 281 forks source link

‌‌‌‌‌‌‌If I want to proxy both the container registry and Hugging Face, how should I set it up? #3271

Open yetone opened 4 months ago

yetone commented 4 months ago

It seems that only one proxy can be set up now. How do we set up two? We want to proxy both the container registry and Hugging Face.

image
gaius-qi commented 4 months ago

You can set the hugging face mirror, and then the containerd configuration passes X-Dragonfly-Registry to overwrite the hugging face mirror address.

image

yetone commented 4 months ago

‌‌So that's how it can be done! Thank you!

gaius-qi commented 4 months ago

We are currently optimizing the documents and trying to make it better. Refer to https://github.com/dragonflyoss/d7y.io/issues/53.

yetone commented 4 months ago

Sorry, I'm a bit confused here. What should I replace https://example.com with? Because I didn't see the relevant configuration in the helm values in this document.

image

gaius-qi commented 4 months ago

Sorry, I'm a bit confused here. What should I replace https://example.com with? Because I didn't see the relevant configuration in the helm values in this document.

image

If you have the other LFS repo, replace example url with the other LFS repo address. If using hugging face LFS repo, you can remove the example line.