Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuna/mirrorhub
Redirects the user to a nearby mirror site.
https://github.com/tuna/mirrorhub
Last synced: 5 days ago
JSON representation
Redirects the user to a nearby mirror site.
- Host: GitHub
- URL: https://github.com/tuna/mirrorhub
- Owner: tuna
- Created: 2016-03-15T19:26:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-25T05:16:48.000Z (about 8 years ago)
- Last Synced: 2024-03-26T03:03:19.178Z (8 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 11
- Watchers: 7
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mirrorhub
Redirects the user to a nearby mirror site.
An instance is [mirrors.moe](https://mirrors.moe).
## Configuration
The configuration is a JSON file and should be specified with the `-conf` option when running mirrorhub.
It should be an object with the following members:
* `sites`: an object mapping site names to site configurations, where a site configuration is an object with the following members:
* `url`: the full URL for the site. A trailing slash is not needed. Example: `https://mirrors.ustc.edu.cn`
* `distros`: a list of distros available on the site.
* `routes`: a list of routes, where every route is an object with the following members:
* `ipnet`: an IP subnet in CIDR notation.
* `ordering`: an ordering of site names appropriate for this subnet.
* `default-ordering`: the default ordering of sites.