mirror of https://github.com/goproxyio/goproxy
661 B
661 B
GOPROXY
A global proxy for go modules. see: https://goproxy.io
Build
go generate
go build
Started
./goproxy -listen=0.0.0.0:80 -root=/ext
Docker
docker run --name goproxy -d -p80:8081 goproxyio/goproxy
Use the -v flag to persisting the proxy module data (change go_repo to your own dir):
docker run --name goproxy -d -p80:8081 -v go_repo:/ext goproxyio/goproxy
Docker Compose
docker-compose up
Appendix
- set
$GOPROXY
to chain your proxy or disable the proxy