Go to file
赵浩翔 477f7b3d7a fix (latest & list):
fix #24
2018-12-26 21:14:10 +08:00
.circleci refactor: pure go 2018-12-25 17:36:32 +08:00
bin refactor: pure go 2018-12-25 17:36:32 +08:00
build refactor: pure go 2018-12-25 17:36:32 +08:00
pkg/proxy fix (latest & list): 2018-12-26 21:14:10 +08:00
scripts fix (latest & list): 2018-12-26 21:14:10 +08:00
.gitignore refactor: pure go 2018-12-25 17:36:32 +08:00
Dockerfile refactor: pure go 2018-12-25 17:36:32 +08:00
LICENSE Initial commit 2018-08-31 16:27:07 +08:00
README.md update flags 2018-12-25 20:23:52 +08:00
circle-test.sh fix CI 2018-12-25 19:44:32 +08:00
docker-compose.yaml fix (latest & list): 2018-12-26 21:14:10 +08:00
go.mod init 2018-09-01 15:31:53 +08:00
main.go improve server with graceful shutdown 2018-12-26 11:41:08 +08:00

README.md

GOPROXY CircleCI

A global proxy for go modules. see: https://goproxy.io

Build

go generate
go build

Started

./goproxy -listen=0.0.0.0:80 -cacheDir=/cache

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:/cache goproxyio/goproxy

Docker Compose

docker-compose up

Appendix

  1. set $GOPROXY to change your proxy or disable the proxy