-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed users to significantly simplify implementation.
- Loading branch information
Showing
5 changed files
with
10 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git-mirror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,6 @@ ListenAddr = ":8080" | |
# Interval is the default interval for updating mirrors, can be overridden per | ||
# repo. Defaults to 15 minutes. | ||
Interval = "15m" | ||
# Top level users have access to all private repos. | ||
Users = [ | ||
"bob the admin:crazy-password", | ||
] | ||
# Base path for storing mirrors, absolute or relative. Defaults to "." | ||
BasePath = "/tmp/mirror" | ||
|
||
|
@@ -18,27 +14,21 @@ BasePath = "/tmp/mirror" | |
[[Repo]] | ||
Origin = "https://github.com/beefsack/git-mirror.git" | ||
|
||
# An example of a private repo with users having access. "bob the admin" also | ||
# has access to this repo. | ||
# | ||
# Will be mirrored at http://localhost:8080/github.com/neovim/neovim.git | ||
[[Repo]] | ||
Origin = "https://github.com/neovim/neovim.git" | ||
Private = true | ||
Interval = "10m" | ||
Users = [ | ||
"mary:some-other-password" | ||
] | ||
|
||
# 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" | ||
|
||
# It is also possible to set custom names for accessing the repos. This is | ||
# required for remotes not using URL schemes. | ||
# 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]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters