Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use proxy to reach uplink repos #13

Closed
trazeris opened this issue Nov 19, 2013 · 3 comments
Closed

Use proxy to reach uplink repos #13

trazeris opened this issue Nov 19, 2013 · 3 comments

Comments

@trazeris
Copy link

I use sinopia for a private repo hosted on our company servers and I need to pass through a proxy to reach public servers. As it is sinopia is not able to send requests for the public npm registry on my server.

If you are not interested in implementing this feature for now, could you please point me in the right direction to do it (where the request to uplinks are sent, especially when we GET dependencies of a module)

@rlidwka
Copy link
Owner

rlidwka commented Nov 20, 2013

How does npm itself work in your case? Do you use HTTP or HTTPS protocol to connect to public servers?

Adding http proxy is very easy (but insecure), https proxy is trickier because of connect method usage and self-signed npmjs certificate.

I'll definitely look into it soon.

@rlidwka
Copy link
Owner

rlidwka commented Nov 24, 2013

I added this feature and published new version to npm.

Starting from version 0.5.3, you can use either HTTP_PROXY/HTTPS_PROXY environment variable or define http_proxy/https_proxy in configuration file. Didn't quite test it yet, so ask if you have any issues with it.

@trazeris
Copy link
Author

Wow, thanks I cannot test it right now but will definitely do it asap

EDIT: It works just fine, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants