rlidwka / sinopia

Private npm repository server
5.51k stars 656 forks source link

Auth for uplink #134

Open alx13 opened 9 years ago

alx13 commented 9 years ago

Is it possible to add an option that allows to use auth on uplink, making possible to chain sinopia instances?

E.g., sinopia -> sinopia -> npmjs.org

rlidwka commented 9 years ago

Yes, try to set http://user:pass@localhost:4873/ as your uplink registry in the first sinopia instance.

alx13 commented 9 years ago

Already tried. Npm stalls :(

rlidwka commented 9 years ago

I just tried, and it works for me. What's in npm logs?

rlidwka commented 9 years ago

Hmm... you're right, it doesn't work very well. Doesn't download tarballs. We'll have to fix that.

alx13 commented 9 years ago

Thanks a lot! I think it will be great to store credentials outside of config. So config will stay manageable with Puppet or something else.

leaanthony commented 9 years ago

This is also an issue for me. Are there any updated on this? Thanks.

Update: More specifically, the issue I'm facing is that of no tarballs being downloaded to the downlink sinopia. I just end up with directories with package.json files in them, even though the package has installed locally. What's odd is that if the uplink is the official npm server it works fine.