镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 06:26:46 +00:00
docs(tunasync): use a single worker.conf file, dropping include
这个提交包含在:
@@ -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
|
||||
```
|
||||
|
||||
### 运行
|
||||
|
||||
```
|
||||
|
||||
在新工单中引用
屏蔽一个用户