Giter Club home page Giter Club logo

firefox-sync-docker-raspbian-arm's Introduction

Docker container for Sync-1.5 Server (firefox sync) running on raspberry (arm32v7)

Infos

Container installation

  • Pull Image from Docker hub:
docker pull augustinvm/firefox-sync-docker-raspbian-arm
  • Run the image:
docker run -it -p 5000:5000 --name fsync augustinvm/firefox-sync-docker-raspbian-arm

Don't daemonize on run, we need to set up configuration:

Two config fields are asked:

  • First is external URL. It is the url in header passed by your web server proxy configuration or the url used for direct access.
    Example: http://fsync.your-domain.net
  • Second is a SQLAlchemy database URI for your database ( Docker host ip on container interface will substitute %dockerhost )
    Example for a mysql server on docker host which knows fsync user identified by fsync_pass having sufficient right on existing fsync_db database.
    'pymysql://fsync:fsync_pass@%dockerhost/fsync_db
    ***** Database may have been correctly configured (/etc/mysql/my.cnf: bind-address = 0.0.0.0 and binding filters in mysql users like 'fsync'@'172.17.0.1')

Then sync server should run, you can detach now Ctrl+P, Ctrl+Q

Proxy configuration:

  • For nginx, following basic configuration works:
server{
      listen 80;
      server_name fsync.your-domain.net;

      location / {
          proxy_set_header Host $http_host;
          proxy_set_header X-Forwarded-Proto $scheme;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-Real-IP $remote_addr;
          proxy_redirect off;
          proxy_read_timeout 120;
          proxy_connect_timeout 10;
          proxy_pass http://127.0.0.1:5000/;
      }
      access_log /var/log/fsync.log;
      error_log /var/log/fsync.err;
}

Browser configuration:

  • Go to firefox advanced configuration about:config.
  • Search for identity.sync.tokenserver.uri entry.
  • Change its value to your new synchronization server with following URI /token/1.0/sync/1.5
    Example: http://fsync.yout-domain.net/token/1.0/sync/1.5
  • Repeat this then reconnect from all synchronized firefox instances you use.

firefox-sync-docker-raspbian-arm's People

Contributors

augustinvoima avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.