forked from kumekay/git-mirror
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-config.toml
More file actions
22 lines (20 loc) · 836 Bytes
/
example-config.toml
File metadata and controls
22 lines (20 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 seconds.
Interval = "15m"
# Base path for storing mirrors, absolute or relative. Defaults to "."
BasePath = "/opt/git-mirror/data"
# 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"
# It is also possible to set custom names for accessing the repos.
#
# Will be mirrored at http://localhost:8080/custom-name
[[Repo]]
Name = "custom-name"
Origin = "git@github.com:toml-lang/toml.git"