Mozilla/Sync

From Segfault
Jump to: navigation, search
TBD!

Installation

What we have so far:

git clone https://github.com/mozilla-services/syncserver syncserver-git
cd syncserver-git
make build && make test

Adjust syncserver.ini as needed:

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[app:main]
use = egg:syncserver

[syncserver]
public_url = http://sync.example.org:5000/
forwarded_allow_ips = *
sqluri = sqlite:////var/www/sync/syncserver.db
# Generate via: head -c 20 /dev/urandom | sha1sum
secret = 64d0512ccae38fbb524af502bc89f2aaec45be99
force_wsgi_environ = true

Start with:

$ local/bin/pserve syncserver.ini
Starting server in PID 29951.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000

Once syncserver is running, we need to configure Firefox to use it:

services.sync.tokenServerURI: http://sync.example.org/token/1.0/sync/1.5

Links