mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 19:54:11 +00:00
docs(tunasync): use a single worker.conf
file, dropping include
This commit is contained in:
parent
add7b936e3
commit
89f79b975f
@ -57,8 +57,11 @@ listen_port = 6000
|
|||||||
ssl_cert = ""
|
ssl_cert = ""
|
||||||
ssl_key = ""
|
ssl_key = ""
|
||||||
|
|
||||||
[include]
|
[[mirrors]]
|
||||||
include_mirrors = "mirrors/*.conf"
|
name = "elvish"
|
||||||
|
provider = "rsync"
|
||||||
|
upstream = "rsync://rsync.elvish.io/elvish/"
|
||||||
|
use_ipv6 = false
|
||||||
```
|
```
|
||||||
|
|
||||||
`~/tunasync_demo/manager.conf`:
|
`~/tunasync_demo/manager.conf`:
|
||||||
@ -78,20 +81,6 @@ db_file = "/tmp/tunasync/manager.db"
|
|||||||
ca_cert = ""
|
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
|
|
||||||
```
|
|
||||||
|
|
||||||
### 运行
|
### 运行
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user