-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hello,
The NPM mirror that I'm using has a /npm at the end of the url, so I used upstream_db_path in the config.json to make it work. However, when npm-lazy-mirror proxies back the URLs for the packages, it doesn't strip the /npm out, causing them to 404.
I devised a temporary workaround using nginx (since I'm reverse proxying through that anyways) as follows:
server {
listen 8080;
location / {
proxy_pass http://localhost:20000;
}
location ~* /npm(/.*) {
return 301 $1;
}
}
The proxy should strip the upstream_db_path from the path to the packages before pushing to the client.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels