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

Comments

Projects
None yet
2 participants
@shingkong

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 ryran added the enhancement label Nov 7, 2016

@ryran

This comment has been minimized.

Show comment
Hide comment
@ryran

ryran Nov 7, 2016

Owner

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

Owner

ryran commented Nov 7, 2016

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

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

@ryran

This comment has been minimized.

Show comment
Hide comment
@ryran

ryran Nov 7, 2016

Owner

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.

Owner

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

This comment has been minimized.

Show comment
Hide comment
@shingkong

shingkong Nov 8, 2016

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

shingkong commented Nov 8, 2016

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

@shingkong shingkong closed this Nov 8, 2016

@ryran ryran changed the title from implement http proxy support to can't use rhsecapi from behind a proxy Nov 8, 2016

@ryran ryran added invalid and removed enhancement labels Nov 8, 2016

@ryran

This comment has been minimized.

Show comment
Hide comment
@ryran

ryran Nov 8, 2016

Owner

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

Owner

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