Installation du serveur Firefox Sync 1.5
Par Nicolas Dutertry le dimanche 13 novembre 2016, 11:45 - Lien permanent
Firefox Sync permet de partager les marques page, les modules ou encore l'historique entre les Firefox installés sur tous vos appareils. Par défaut il utilise un serveur central hébergé par Mozilla, mais il est possible d'installer soi-même le serveur Firefox Sync.
Voyons comment faire.
Source : https://docs.services.mozilla.com/h...
Installation du serveur
Compilation
Les dépendances à installer :
# aptitude install python-dev git-core python-virtualenv g++
Récupération des sources sur Github et compilation :
# cd /var/www # git clone https://github.com/mozilla-services/syncserver # cd syncserver # make build
Test de la bonne installation :
# make test
Affection des droits à l'utilisateur sync :
# chown -R sync:sync /var/www/syncserver
Configuration
Génération du secret :
# head -c 20 /dev/urandom | sha1sum 59fab052dd2feef55aa93a31d557208dd5f19498 -
Dans le fichier /var/www/syncserver/syncserver.ini :
[syncserver] public_url = https://mondomaine.com/sync/ sqluri = sqlite:////var/www/syncserver/syncserver.db secret = 59fab052dd2feef55aa93a31d557208dd5f19498
Configuration d'Apache
# Firefox Sync Server WSGIProcessGroup sync WSGIDaemonProcess sync user=sync group=sync processes=2 threads=25 python-path=/var/www/syncserver/local/lib/python2.7/site-packages/ WSGIPassAuthorization On WSGIScriptAlias /sync /var/www/syncserver/syncserver.wsgi <Directory /var/www/syncserver> Order deny,allow Allow from all </Directory>
Configuration de Firefox
Dans about:config :
identity.sync.tokenserver.uri = https://mondomaine.com/sync/token/1.0/sync/1.5