forked from beefsack/git-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-config.toml
50 lines (45 loc) · 1.9 KB
/
example-config.toml
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
45
46
47
48
49
50
# Whether to start a web server to serve the mirrors. Defaults to true
ServeMirror = true
# Whether to automatically clone repositories from origin when requested
# repositories don't exist. Defaults to false
AutoClone = false
# ListenAddr is the address the web server listens on for serving the mirrors.
# Defaults to :8080
ListenAddr = ":8080"
# Interval is the default interval for updating mirrors, can be overridden per
# repository. Defaults to 15 minutes.
Interval = "15m"
# Base path for storing mirrors, absolute or relative. Defaults to "."
BasePath = "/tmp/mirror"
# Optional path to the SSH private key for pushing to target repositories.
# KeyPath = "~/.ssh/id_rsa"
# An example of a public mirror taking defaults from above. The Name is
# generated from the URL by just taking the host and path.
#
# Will be mirrored at at http://localhost:8080/github.com/NexZhu/git-mirror.git
# and mirrored to [email protected]:NexMirror/git-mirror.git
[[Repo]]
Origin = "https://github.com/NexZhu/git-mirror.git"
Target = "[email protected]:NexMirror/git-mirror.git"
# Also supports mirroring Mercurial repositories into Git repositories via git-remote-hg
[[Repo]]
Origin = "hg::https://www.octave.org/hg/octave"
Target = "[email protected]:NexMirror/Octave.git"
# Repos whose Origin is not a URL is simplified to the last part after any @
# symbol with any : symbol converted to a /
#
# Will be mirrored at http://localhost:8080/github.com/toml-lang-toml.git
[[Repo]]
Origin = "[email protected]:toml-lang/toml.git"
# Repos can specify their own Interval to override the global setting.
#
# Will be mirrored at http://localhost:8080/github.com/neovim/neovim.git
[[Repo]]
Origin = "https://github.com/neovim/neovim.git"
Interval = "10m"
# It is also possible to set custom names for accessing the repositories.
#
# Will be mirrored at http://localhost:8080/custom-name
[[Repo]]
Origin = "[email protected]:toml-lang/toml.git"
Name = "custom-name"