-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Add Proxy Settings for Crawler #745
Comments
you should be able to setup a proxy server on the chrome container (where most of the fetching happens) using chrome flags. Check #420 out |
Is there any way to setup a proxy server when using browserless? It will be great if i could reuse my browserless service :D. |
@KortanZ seems like you can by adding it at the end of the browserless URL you give to hoarder (https://docs.browserless.io/recipes/proxies#specifying-the-proxy) |
I have added the proxy-server parameter in both the command and environment sections of the Chrome container. After successfully starting the container, I verified that the proxy is working by executing the command curl -I www.youtube.com inside the container. However, when I paste a URL into Hoarder, I still encounter the error Crawling job failed: TimeoutError: Navigation timeout of 30000 ms exceeded |
same |
In the docker environment the networking is a bit different. You need a special IP |
Describe the feature you'd like
In certain regions of the world, internet censorship is very strict, so proxies must be used to access some very popular websites.
However, when I tried to use the environment variables
HTTP_PROXY
andHTTPS_PROXY
to route container traffic through a proxy, it had no effect. I hope there can be configuration options added in the.env
file to enable this functionality.Describe the benefits this would bring to existing Hoarder users
Users around the world
Can the goal of this request already be achieved via other means?
Yes, this could perhaps be achieved by setting the proxy in the Docker daemon's configuration file, but I only want to enable the proxy for specific containers
Have you searched for an existing open/closed issue?
Additional context
No response
The text was updated successfully, but these errors were encountered: