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

can't use rhsecapi from behind a proxy #29

Closed
shingkong opened this issue Nov 7, 2016 · 4 comments
Closed

can't use rhsecapi from behind a proxy #29

shingkong opened this issue Nov 7, 2016 · 4 comments
Assignees
Labels

Comments

@shingkong
Copy link

shingkong commented Nov 7, 2016

my server cannot access rhsecapi directly, tried using http_proxy but failed

Note from maintainer: since rhsecapi uses python's request module, this should be supported via environment variables

@ryran ryran self-assigned this Nov 7, 2016
@ryran
Copy link
Collaborator

ryran commented Nov 7, 2016

Hello @shingkong
That's a great point. We should totally implement proxy support.

@ryran ryran changed the title can we use this tool through proxy server to internet? implement http proxy support Nov 7, 2016
@ryran
Copy link
Collaborator

ryran commented Nov 7, 2016

Okay @shingkong ... You can actually accomplish this now with environment variables. E.g.:

$ export HTTP_PROXY="http://10.10.1.10:3128"

Or if your proxy requires HTTP Basic Auth, this should work:

$ export HTTP_PROXY="http://user:pass@10.10.1.10:3128"

If you're dealing with a SOCKS proxy, well, that's another story. Let me know.

@shingkong
Copy link
Author

thanks Ryan, i found that's my environment variables not correct, set https_proxy fixed this.

@ryran ryran changed the title implement http proxy support can't use rhsecapi from behind a proxy Nov 8, 2016
@ryran ryran added invalid and removed enhancement labels Nov 8, 2016
@ryran
Copy link
Collaborator

ryran commented Nov 8, 2016

Glad to hear it's working for you now @shingkong

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

No branches or pull requests

2 participants