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

how to masquerade as crates.io #120

Open
tomjohns opened this issue Nov 17, 2023 · 1 comment
Open

how to masquerade as crates.io #120

tomjohns opened this issue Nov 17, 2023 · 1 comment

Comments

@tomjohns
Copy link

Firstly, thanks for creating panamax, its AWESOME!!

I was wondering if you might be able to provide some insight into what would need to happen in order for the default .cargo/config.toml to resolve to the panamax mirror. my offline setup has a dns server that i would like to put entries in for crates.io, github.com and let dns resolve to the host running panamax

I unsuccessfully tried modifying the mirror.rs code to run on port 80 and serve.rs to serve the index path from github.com/rust-lang/crates.io-index

Any advice whatsoever would be much appreciated, thanks again!

@k3d3
Copy link
Member

k3d3 commented Jun 6, 2024

Unfortunately, I'm not sure how best to answer this. I don't think it's possible (at least in its current state) to make panamax pretend to be crates.io and github, even with DNS entries pointing to it.

That would be an interesting use case though, so I'm not against a PR that implements some sort of "masquerade mode".

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

2 participants