Proxy configuration¶
Bigdata supports a proxy setup on the client’s side. By setting a proxy you can redirect output traffic and work with it before it leaves your network. This is useful for debugging, security, and privacy reasons.
Set up¶
You can set it up in two ways, by providing the information using environment variables or by providing the configuration directly into the Bigdata object. Note that the proxy interacts with the code at a very low level so it is recommended to not combine the two methods.
Example:
from bigdata_client import Bigdata
from bigdata_client.auth import Proxy
bigdata = Bigdata(proxy=Proxy(url="http://127.0.0.1:3128"))
Or provide the proxy using environment variables:
export HTTPS_PROXY="http://127.0.0.1:3128"
Note
As of today, all connections are HTTPS, if you prefer to not concern about the different protocols you may provide a proxy server for all of them using the environment variable ALL_PROXY
Note
In the case of proxies with credentials use the following format:
HTTPS_PROXY="http://user:[email protected]:3128"