mirror of
				https://github.com/tborychowski/self-hosted-cookbook.git
				synced 2025-11-04 07:37:34 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.7 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.7 KiB
		
	
	
	
	
	
	
	
Firefox Sync Server
Run-Your-Own Firefox Sync Server. I couldn't make it fully work with MacOS & iOS.
Maybe this tutorial will work, but I haven't tried that yet.
docker-compose.yml
---
version: '3'
services:
  firefox-sync:
  image: mozilla/syncserver:latest
  container_name: firefox-sync
  restart: unless-stopped
  environment:
    - TZ=Europe/Dublin
    - SYNCSERVER_PUBLIC_URL=http://localhost:5000
    - SYNCSERVER_SECRET=0123123123123123123123123123123
    - SYNCSERVER_SQLURI=sqlite:////data/syncserver.db
    - SYNCSERVER_BATCH_UPLOAD_ENABLED=true
    - SYNCSERVER_FORCE_WSGI_ENVIRON=false
  ports:
    - "3000:5000"
  volumes:
    - ./data:/data
Tips & Tricks
Change in Firefox desktop
in about:config, change: identity.sync.tokenserver.uri to https://firefox.example.com/token/1.0/sync/1.5
(default is https://token.services.mozilla.com/1.0/sync/1.5)
Change on iOS
- In 
Settings- tap 5 times on the version number to get into Debug Mode - Go to 
Advanced Sync Settingsand enter your sync URL:https://firefox.example.com/token/1.0/sync/1.5 
Generate secret
head -c 20 /dev/urandom | sha1sum
Test
/usr/local/bin/python -m syncstorage.tests.functional.test_storage --use-token-server http://localhost:5000/token/1.0/sync/1.5
Remove mozilla hosted data
pip install PyFxA
python ./bin/delete_user_data.py user@example.com