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

support for proxy #3

Open
warroyo opened this issue Jan 27, 2016 · 5 comments
Open

support for proxy #3

warroyo opened this issue Jan 27, 2016 · 5 comments

Comments

@warroyo
Copy link

warroyo commented Jan 27, 2016

I am using satis behind a corporate proxy, is there any way to enable the use of this?

@benschw
Copy link
Owner

benschw commented Jan 29, 2016

What problem are you running into? Are you trying to access it from outside of the office? Is the proxy interfering with the satis server within the office?

@warroyo
Copy link
Author

warroyo commented Jan 29, 2016

The issue is that when I try to add new repos through the admin it unable to access the repos because I am behind a proxy. It does not seem to respect the http_proxy env variables.

@benschw
Copy link
Owner

benschw commented Feb 2, 2016

(Sorry, I've been busy lately)

This seems pretty reasonable, could you post some links to how this environment variable should be handled? It doesn't sound like it will be a problem to add in

@warroyo
Copy link
Author

warroyo commented Feb 2, 2016

This link should help out some, you will want to use those three ENV variables.

if you are using net/http then you could modify the transport on your rest call

proxyUrl, err := url.Parse("proxyurl from environment")
http.DefaultTransport = &http.Transport{Proxy: http.ProxyURL(proxyUrl)}

does this help?

@benschw
Copy link
Owner

benschw commented Feb 9, 2016

Sorry, I've been busy. I will try to get to this soon, but it looks like you have an idea of how to fix it. feal free to submit a PR

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