Comments (5)
You can't serve the files directly without some rewrites, see the sample nginx config in the repo: https://github.com/panamax-rs/panamax/blob/master/nginx.sample.conf
I'm not sure why the decision was made to have the on-disk layout differ from the served layout. I wanted to use panamax to update a mirror which is mounted into build tasks (so the crates base URL is a file://
URL) but it doesn't work because of this same issue.
from panamax.
Oh shoot, I didn't realize the formats differed - the intention was to have them be the same format. I could've sworn the index used to be 3/(crate) rather than 3/(1st letter) /(crate).
Ill try to get this fixed - sorry about that.
from panamax.
Actually even with the rewrites in place, there seem to be issues with crates that have short names.
[16/Jan/2023:05:40:15 +0000] "GET /crates/3/n/num/0.3.1/num-0.3.1.crate HTTP/1.1" 404 153 "-" "cargo 1.66.1 (ad779e08b 2023-01-10)"
from panamax.
I replaced the rewrites with this and it seems to work:
rewrite "^/crates/3/[^/]/([^/]+)/([^/]+)/([^/]+)$" "/crates/3/$1/$2/$3";
The other rewrites, so far, seem unnecessary. Maybe needed for an older cargo version?
from panamax.
This should be fixed as of 1.0.8. Feel free to reopen this issue if you're still having trouble.
from panamax.
Related Issues (20)
- Sync over multiple vendor directories (over time) HOT 3
- wrong paths / urls HOT 7
- Adjust the vendor directories being tracked (over time) HOT 2
- A way to serve the documentation for crates.io?
- Please add selective syncing HOT 4
- Unable to complete downloading crates HOT 3
- Crate whitelisting HOT 1
- Cargo vendor failed using mirror repository
- could not resolve host:panamax.internal HOT 6
- Not syncing some dists HOT 3
- Not working over SSH HOT 5
- Update version to 1.0.7 and create new docker image for new vendor feature? HOT 2
- After configuring panamax and cargo, the later keeps attempting to connect to panamax.internal HOT 3
- Downloading crates.io-index repository failed: GitError(Error { code: -1, klass: 16, message: "the server did not provide a certificate" }) HOT 2
- Feature request: Add support for sparse registry HOT 4
- Environment Variables example? HOT 1
- Regression in platform filtering for Unix
- 500 Error When Accessing Crates HOT 10
- panamax serve on IPv4 network only HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panamax.