panamax icon indicating copy to clipboard operation
panamax copied to clipboard

how to masquerade as crates.io

Open tomjohns opened this issue 1 year ago • 1 comments

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!

tomjohns avatar Nov 17 '23 20:11 tomjohns