docs(tunasync): use a single worker.conf file, dropping include

This commit is contained in:
bigeagle 2016-11-20 00:03:10 +08:00
parent add7b936e3
commit 89f79b975f

View File

@ -57,8 +57,11 @@ listen_port = 6000
ssl_cert = ""
ssl_key = ""
[include]
include_mirrors = "mirrors/*.conf"
[[mirrors]]
name = "elvish"
provider = "rsync"
upstream = "rsync://rsync.elvish.io/elvish/"
use_ipv6 = false
```
`~/tunasync_demo/manager.conf`:
@ -78,20 +81,6 @@ db_file = "/tmp/tunasync/manager.db"
ca_cert = ""
```
### 镜像脚本
```
$ mkdir ~/tunasync_demo/mirrors
$ cat > ~/tunasync_demo/mirrors/elvish.conf < EOF
[[mirrors]]
name = "elvish"
provider = "rsync"
upstream = "rsync://rsync.elvish.io/elvish/"
use_ipv6 = false
EOF
```
### 运行
```