How to set syncthing on server correctly

Why you need this? It's simple, you don't wanna upload or download by yourself.


0. download and uncompress package
`wget https://github.com/syncthing/syncthing/releases/download/v0.14.44-rc.3/syncthing-linux-amd64-v0.14.44-rc.3.tar.gz`
`tar xf syncthing-linux-amd64-v0.14.44-rc.3.tar.gz`
'mv syncthing-linux-amd64-v0.14.44-rc.3 syncthing'

1. you can't run syncthing in root mode.
add a user by `adduser user`

2. setting auto start when boot
`cp syncthing/syncthing /usr/bin/`
`cp syncthing/etc/linux-systemd/system/syncthing@.service /etc/systemd/system/syncthing@user.service`
`systemctl enable syncthing@user.service`

3. run to get config file
`systemctl start syncthing@user.service`

4. change localhost to 0.0.0.0
`vim /home/user/.config/syncthing/config.xml`
replace `127.0.0.1` with `0.0.0.0`

5. reboot and see
`reboot`
see `http://your_server_ip:8384`