A GitHub HTTP proxy server written by go.
Usage:
git-proxy [flags]
Flags:
-l, --bandwidth-limit int set total bandwidth limit (MB/s), 0 as no limit
-b, --blacklist-path string set repository blacklist (default "blacklist.txt")
--deny-web-page deny web page requests
--deny-web-page-list strings deny web page requests list (default [github.com,gist.github.com])
--disable-color disable color output
-d, --domain-list-path string set accept domain (default "domainlist.txt")
-h, --help help for git-proxy
-p, --running-port int disable color output (default 30000)https://<your_domain>/<github_request_url>
https://abc.com/https://github.com/github/docs.git
git clone https://github.com/PuerNya/git-proxy.git && cd git-proxy && go build -o git-proxy.exe -v -trimpath -ldflags "-s -w" main.go
git clone https://github.com/PuerNya/git-proxy.git && cd git-proxy && go build -o git-proxy -v -trimpath -ldflags "-s -w" main.go
Block repositories in blacklist.
<user>/<repo>
- Wildcard characters
*?are supported - Blank user/repo will be parsed as
*
examples:
`/abcd` => User: "*", Repo: "abcd"
`abcd/` => User: "abcd", Repo: "*"
Accept requests whose url host is in the list.
github.comraw.github.comraw.githubusercontent.comgist.github.comobjects.githubusercontent.comgist.githubusercontent.comcodeload.github.comapi.github.com
- use
nginxto add upgrade request to H2/H3