User Tools

This is an old revision of the document!


Self-hosted Firefox

check this out… a containerized Firefox that you can self host and run in a browser!

Why? to navigate from your server wherever you are.

As the user you want to navigate with, create the docker-compose.yml file:

docker-compose.yml
version: '3'
services:
  firefox:
    image: jlesage/firefox
    environments:
     - USER_ID=1000
     - GROUP_ID=1000
    ports:
      - "5800:5800"
    volumes:
      - "/user/appdata/firefox:/config:rw"

adapt your port (5800) and config path (/user/appdata/firefox).

Now, setup a tunnel from your local PC to the server:

ssh external-server1 -L5800:127.0.0.1:5800

and then fireup your browser to http://127.0.0.1 and navigate with firefox-in-the-browser! (this tunnel step is not needed if you setup the reverse proxy as indicated below)

Reverse Proxy

Create the following NGINX config:

firefox.conf
location /firefox/ {
        rewrite ^/firefox/(.*) /$1 break;
        proxy_ignore_client_abort on;
        proxy_pass   http://127.0.0.1:5800;
        proxy_redirect  http://127.0.0.1:5800 /firefox;
        proxy_cookie_path / /firefox/;
    }

See The Reverse Proxy concept for more info.

Autostart

Autostarting at boot might be trickier, i suggest you take a look at Custom User Services and follow these additional hits.

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information