Hi, This is Vangelis from the Internet Archive.
We try to use the PROXY_HOST
, PROXY_PORT
and PROXY_SSL
parameters like this:
sudo docker run \
-e "MAX_CONCURRENT_SESSIONS=1" \
-e "EXIT_ON_HEALTH_FAILURE=true" \
-e 'DISABLED_FEATURES=["pdfEndpoint", "contentEndpoint"]' \
-e "DEFAULT_IGNORE_HTTPS_ERRORS=true" \
-e "DEFAULT_HEADLESS=false" \
-e "DEFAULT_BLOCK_ADS=true" \
-e "PREBOOT_CHROME=true" \
-e "KEEP_ALIVE=true" \
-e "PROXY_HOST=207.241.233.197" \
-e PROXY_PORT=8000 \
-e PROXY_SSL=true \
-p 3000:3000 --restart always \
-d browserless/chrome
but when we inspect the running chrome instance, there isn't any --proxy-server=207.241.233.197:8000
.
It is possible that that the proxy parameters are not set correctly?
I also tried using quotes -e "PROXY_PORT=8000"
and -e "PROXY_SSL=true"
(there aren't quotes for these params in your docs).
The following are the chrome processes we see:
$ ps aux | grep chrome
systemd+ 3753935 0.7 4.9 34149928 198200 ? Ssl 11:56 0:05 /usr/bin/google-chrome --allow-pre-commit-input --disable-background-networking --enable-features=NetworkServiceInProcess2 --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=Translate,BackForwardCache,AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --enable-blink-features=IdleDetection --export-tagged-pdf --user-data-dir=/tmp/browserless-data-dir-hJID7R about:blank --no-sandbox --enable-logging --v1=1 --disable-dev-shm-usage --no-first-run --remote-debugging-port=38413 --user-data-dir=/tmp/browserless-data-dir-hJID7R
systemd+ 3753958 0.0 0.0 33567988 3212 ? Sl 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler --database=/home/blessuser/.config/chromium/Crash Reports --annotation=lsb-release=Ubuntu 20.04.5 LTS --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=106.0.5249.0 --initial-client-fd=89 --shared-client-connection
systemd+ 3753960 0.0 0.0 33559776 1256 ? S 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler --database=/home/blessuser/.config/chromium/Crash Reports --annotation=lsb-release=Ubuntu 20.04.5 LTS --annotation=plat=Linux --annotation=prod=Chrome_Linux --annotation=ver=106.0.5249.0 --initial-client-fd=4 --shared-client-connection
systemd+ 3754052 0.0 1.4 33833504 57476 ? S 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome --type=zygote --no-zygote-sandbox --no-sandbox --enable-logging --enable-crashpad --crashpad-handler-pid=24 --enable-crash-reporter=, --user-data-dir=/tmp/browserless-data-dir-hJID7R --change-stack-guard-on-fork=enable --enable-crashpad
systemd+ 3754053 0.0 1.4 33833504 57460 ? S 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome --type=zygote --no-sandbox --enable-logging --enable-crashpad --crashpad-handler-pid=24 --enable-crash-reporter=, --user-data-dir=/tmp/browserless-data-dir-hJID7R --change-stack-guard-on-fork=enable --enable-crashpad
systemd+ 3754054 0.0 0.0 33563380 3416 ? S 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/nacl_helper --no-sandbox
systemd+ 3754104 0.0 0.7 33874884 29456 ? Sl 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --service-sandbox-type=utility --no-sandbox --disable-dev-shm-usage --enable-logging --enable-crashpad --crashpad-handler-pid=24 --enable-crash-reporter=, --user-data-dir=/tmp/browserless-data-dir-hJID7R --change-stack-guard-on-fork=enable --enable-logging --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,1146328914334178620,13661253154243441507,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,Translate
systemd+ 3754128 0.0 1.4 1179733328 57376 ? Sl 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome --type=renderer --enable-crashpad --crashpad-handler-pid=24 --enable-crash-reporter=, --user-data-dir=/tmp/browserless-data-dir-hJID7R --display-capture-permissions-policy-allowed --event-path-policy=0 --change-stack-guard-on-fork=enable --first-renderer-process --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --enable-logging --force-color-profile=srgb --remote-debugging-port=38413 --allow-pre-commit-input --enable-blink-features=IdleDetection --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1658940464607497 --launch-time-ticks=4043305451928 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,1146328914334178620,13661253154243441507,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,Translate
systemd+ 3754129 0.1 2.2 1179775596 90036 ? Sl 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome --type=renderer --enable-crashpad --crashpad-handler-pid=24 --enable-crash-reporter=, --user-data-dir=/tmp/browserless-data-dir-hJID7R --display-capture-permissions-policy-allowed --event-path-policy=0 --change-stack-guard-on-fork=enable --no-sandbox --disable-dev-shm-usage --disable-background-timer-throttling --disable-breakpad --enable-automation --enable-logging --force-color-profile=srgb --remote-debugging-port=38413 --allow-pre-commit-input --enable-blink-features=IdleDetection --lang=en-US --num-raster-threads=2 --enable-main-frame-before-activation --renderer-client-id=4 --time-ticks-at-unix-epoch=-1658940464607497 --launch-time-ticks=4043305458596 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,1146328914334178620,13661253154243441507,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,Translate
systemd+ 3754190 0.0 1.4 33943228 58884 ? Sl 11:56 0:00 /usr/src/app/node_modules/puppeteer/.local-chromium/linux-1036745/chrome-linux/chrome --type=gpu-process --no-sandbox --disable-dev-shm-usage --disable-breakpad --enable-logging --enable-crashpad --crashpad-handler-pid=24 --enable-crash-reporter=, --user-data-dir=/tmp/browserless-data-dir-hJID7R --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAgAAAIAAAAAAAAAAAAAAAAAABgAAEAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAIAAAAAAAAAABAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --use-gl=angle --use-angle=swiftshader-webgl --enable-logging --shared-files --field-trial-handle=0,i,1146328914334178620,13661253154243441507,131072 --enable-features=NetworkServiceInProcess2 --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,BackForwardCache,Translate
Thank you.
Sorry about that, you're using the wrong param! https://www.browserless.io/docs/docker#using-a-proxy is for when you run browserless behind a reverse proxy like Nginx. To have chrome use a proxy, see more here: https://www.browserless.io/docs/chrome-flags#launching-with-a-proxy
Owner Name | browserless |
Repo Name | chrome |
Full Name | browserless/chrome |
Language | TypeScript |
Created Date | 2017-11-17 |
Updated Date | 2023-03-22 |
Star Count | 5309 |
Watcher Count | 47 |
Fork Count | 516 |
Issue Count | 29 |
Issue Title | Created Date | Updated Date |
---|