This is a guide to setup Firefox Sync Server 1.5 in Alpine Linux. This guide is based off the official documentation available from Mozilla.
Let’s install the things we need to get moving.
apk install python-dev git py-virtualenv build-base sqlite
Download and build
Now that the pre-reqs are setup, we can download the code and build it.
mkdir /opt cd /opt git clone https://github.com/mozilla-services/syncserver cd syncserver make build
public_urlto use proper domain name or ip address
- Un-comment line with
sqluriconfiguration, and change the path for
syncserver.dbto a directory outside of
- Set up secret by running
head -c 20 /dev/urandom | sha1sumto get new value and pasting in
make serve from the
/opt/syncserver directory. You should be able to hit the sync server from a web browser and get an
it works! message. If not, you should get some helpful error message.
Start at system boot
First, you need to enable the
rc-update add local
Next we need to add a script for the
local service to run on startup. Create the file
/etc/local.d/firefox_sync.start and past in the following code:
#!/bin/sh /usr/bin/make serve --directory /opt/syncserver
Save the file, and make it executable:
chmod +x /etc/local.d/firefox_sync.start
Test it by running:
/etc/local.d/firefox_sync.start. You should see the sync server starting up.
Fully test by restarting the Alpine server. After logging in, you should be able to see the gunicorn server running when you run the
Setting up Firefox
You now need to setup Firefox to point at your Sync Server.
To configure desktop Firefox to talk to your new Sync server, go to
about:config, search for
identity.sync.tokenserver.uri and change its value to the URL of your server with a path of
You should now be able to log in with your Firefox Account and sync your data to your personal Sync Server.