Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upcan't use rhsecapi from behind a proxy #29
Comments
ryran
self-assigned this
Nov 7, 2016
ryran
added
the
enhancement
label
Nov 7, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ryran
Nov 7, 2016
Owner
Hello @shingkong
That's a great point. We should totally implement proxy support.
|
Hello @shingkong |
ryran
changed the title from
can we use this tool through proxy server to internet?
to
implement http proxy support
Nov 7, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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.
|
Okay @shingkong ... You can actually accomplish this now with environment variables. E.g.:
Or if your proxy requires HTTP Basic Auth, this should work:
If you're dealing with a SOCKS proxy, well, that's another story. Let me know. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
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
closed this
Nov 8, 2016
ryran
changed the title from
implement http proxy support
to
can't use rhsecapi from behind a proxy
Nov 8, 2016
ryran
added
invalid
and removed
enhancement
labels
Nov 8, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Glad to hear it's working for you now @shingkong |
shingkong commentedNov 7, 2016
•
edited by ryran
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