-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig-example.json
More file actions
44 lines (44 loc) · 1.16 KB
/
config-example.json
File metadata and controls
44 lines (44 loc) · 1.16 KB
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
36
37
38
39
40
41
42
43
44
{
"mirrors": [
{
"id": "manjaro",
"schedule": "10 0 * * *",
"provider": "rsync",
"params": {
"url": "rsync://mirror.yandex.ru/mirrors/manjaro/"
}
},
{
"id": "opensuse",
"schedule": "0 */8 * * *",
"provider": "rsync",
"params": {
"url": "rsync://fr2.rpmfind.net/linux/opensuse/",
"exclude": "{history,ports,source}",
"dest": "/data-tmp/opensuse"
}
},
{
"id": "custom",
"schedule": "10 0 * * *",
"provider": "shell",
"params": {
"cmd": "node ./update_custom.js"
}
}
],
"concurrency": 2,
"log_dir": "/data/log/sync/",
"repo_dir": "/data/repos/",
"rsync": {
"command": "rsync -avHh --delete --delete-after --delay-updates --safe-links --stats --no-o --no-g"
},
"mysql": {
"host": "127.0.0.1",
"user": "sync",
"password": "123456",
"database": "mirrors"
},
"port":3000,
"nginx-index-port": 3001
}