Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Created February 28, 2017 21:51
Show Gist options
  • Select an option

  • Save jameswhite/42d283f026640860b805f0eea8468091 to your computer and use it in GitHub Desktop.

Select an option

Save jameswhite/42d283f026640860b805f0eea8468091 to your computer and use it in GitHub Desktop.
sudo apt-get install nginx
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio.list
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install resilio-sync
cp /etc/resilio-sync/config.json /etc/resilio-sync/config.json.dist
rslsync --dump-sample-config | sed -e "s/MY_SECRET_1/$(rslsync --generate-secret)/" -e 's/\/home\/user\/bittorrent\/sync_test/\/usr\/share\/nginx\/html/' > /etc/resilio-sync/config.json
service resilio-sync restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment