Last Updated: February 25, 2016
·
804
· shtirlic

Mozilla Sync server under Nginx

If you want to run Mozilla Sync server behind your Nginx installation, here is the simple config.

upstream mozilla_sync { server localhost:5000 fail_timeout=0; }

server { 
      # ... some your stuff 
      location /sync/ {
         rewrite /sync/(.*) /$1 break; 
         proxy_pass http://mozilla_sync; 
      } 
 }

Remember: Please setup SSL/TLS on your Nginx server for privacy and security.

From http://podtynnyi.com/2013/09/07/mozilla-sync-server-under-nginx/