forked from beefsack/git-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.toml
36 lines (32 loc) · 1.28 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
# 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
# repo. Defaults to 15 minutes.
Interval = "15m"
# Base path for storing mirrors, absolute or relative. Defaults to "."
BasePath = "/tmp/mirror"
# 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/beefsack/git-mirror.git
[[Repo]]
Origin = "https://github.com/beefsack/git-mirror.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 repos.
#
# Will be mirrored at http://localhost:8080/custom-name
[[Repo]]
Origin = "[email protected]:toml-lang/toml.git"
Name = "custom-name"