Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Proxy settings aren't applied #273

Open
mbrevda opened this issue Dec 31, 2024 · 1 comment
Open

[Bug] Proxy settings aren't applied #273

mbrevda opened this issue Dec 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mbrevda
Copy link

mbrevda commented Dec 31, 2024

Current Behavior

When provisioning proxy settings via env vars, the settings aren't applied until accessing proxy settings via the giu and clicking "OK"

Expected Behavior

Proxy setting should be applied out of the box

Steps To Reproduce

docker-compose.yaml

services:
  firefox:
    image: jlesage/firefox
    ports:
      - "5800:5800"
    environment:
      FF_PREF_PROXY_HTTP: 'network.proxy.http="foo.bar.baz"'
      FF_PREF_PROXY_HTTP_PORT: 'network.proxy.http_port=8080'
      FF_PREF_PROXY_TYPE: 'network.proxy.type=1'
      FF_PREF_PROXY_SHARE_SETTINGS: 'network.proxy.share_proxy_settings=true'

run with docker compose up. When running, no paged should be displayed due to the invalid proxy server. Unfortioanlly, browsing works fine (albeit unproxied).

Environment

I've run in to this issue in multiple environments including locally and cloud hosted (Cloud Run),

Container creation

see above

Container log

.

Container inspect

No response

Anything else?

No response

@mbrevda mbrevda added the bug Something isn't working label Dec 31, 2024
@tboucher204
Copy link

tboucher204 commented Jan 11, 2025

I had the same issue but fixed it by essentially double quoting the string values. It's as if the variables expect an integer or boolean. quoting the strings lets the system know they are strings. I use Ansible for my deployments. You could try switching the quote marks but I am not sure.

See below, it works for me:

env:
FF_OPEN_URL: "https://ipinfo.io/what-is-my-ip"
FF_PREF_DOWNLOAD_DIR: "browser.download.dir='/mnt/downloads/firefox'"
FF_PREF_PROXY_TYPE: "network.proxy.type=1"
FF_PREF_HTTP_PROXY: "network.proxy.http='somehost'"
FF_PREF_HTTP_PROXY_PORT: "network.proxy.http_port=8080"
FF_PREF_SHARE_PROXY_SETTINGS: "network.proxy.share_proxy_settings=true"

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants