You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Hello,
The NPM mirror that I'm using has a
/npm
at the end of the url, so I usedupstream_db_path
in the config.json to make it work. However, whennpm-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:
The proxy should strip the
upstream_db_path
from the path to the packages before pushing to the client.The text was updated successfully, but these errors were encountered: