Go to file
Denis Subbotin 2c027c90d6 fix #63 2019-04-13 10:38:39 +08:00
.circleci fix(subpath) & test: 2019-01-22 16:11:40 +08:00
build fix #63 2019-04-13 10:38:39 +08:00
contrib Added a contrib/goproxy.yml Stackfile for Docker Swarm deployment using Traefik 2019-01-14 11:32:10 +08:00
pkg/proxy always provide file serve 2019-02-01 10:54:24 +08:00
scripts fix (latest & list): 2018-12-26 21:14:10 +08:00
test fix(subpath) & test: 2019-01-22 16:11:40 +08:00
.gitignore mix(scm&structure): 2019-01-09 10:27:51 +08:00
Dockerfile fix(subpath) & test: 2019-01-22 16:11:40 +08:00
LICENSE Initial commit 2018-08-31 16:27:07 +08:00
Makefile fix(subpath) & test: 2019-01-22 16:11:40 +08:00
README.md make readme cleaner 2019-01-09 10:28:12 +08:00
docker-compose.yaml fix docker build 2018-12-27 16:31:10 +08:00
go.mod compatible for go 1.11 and go 1.12 2019-03-20 22:28:35 +08:00
main.go compatible for go 1.11 and go 1.12 2019-03-20 22:28:35 +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=/data

Use docker image

docker run -d -p80:8081 goproxy/goproxy

Use the -v flag to persisting the proxy module data (change cacheDir to your own dir):

docker run -d -p80:8081 -v cacheDir:/go goproxy/goproxy

Docker Compose

docker-compose up

Appendix

  1. set export GOPROXY=http://localhost to enable your goproxy.
  2. set export GOPROXY= to disable it.