summaryrefslogtreecommitdiff
path: root/docs/server/syncthing.md
blob: df04b13ca3702b7e916210d2ebecefc0b0d937a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Syncthing Setup

I am currently using syncthing for my music to be synced across devices.

## Installation

Install the [Syncthing](https://apt.syncthing.net/) package from upstream repositories.

## Reverse proxy setup [[Ref]](https://docs.syncthing.net/users/reverseproxy.html)

Example syncthing reverse proxy setup. 

	sync.joshuayun.com {
	        handle_path /* {
	                reverse_proxy http://localhost:8384 {
	                        header_up Host {upstream_hostport}
	                }
	        }
	}
	
Optional: Add a htpasswd to block unauthorized access to the syncthing.
	
## Syncthing system service [[Ref]](https://docs.syncthing.net/users/autostart.html#linux)

Enable the syncthing user service.
	
	systemctl enable syncthing@myuser.service
	systemctl start syncthing@myuser.service



## Syncthing configuration

Done all through the gui.
It is recommended to setup a user login, **especially** if syncthing is exposed to the open internet.