Go to file
Baokun Lee 12fb2b3845 make dir before create cache file 2019-07-25 22:43:19 +08:00
.circleci refactor handlers 2019-07-25 16:20:01 +08:00
contrib Added a contrib/goproxy.yml Stackfile for Docker Swarm deployment using Traefik 2019-01-14 11:32:10 +08:00
proxy print error into http 2019-07-25 21:03:07 +08:00
scripts fix (latest & list): 2018-12-26 21:14:10 +08:00
test refactor handlers 2019-07-25 16:20:01 +08:00
.gitignore refactor handlers 2019-07-25 16:20:01 +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 refactor handlers 2019-07-25 16:20:01 +08:00
README.md refactor handlers 2019-07-25 16:20:01 +08:00
docker-compose.yaml fix docker build 2018-12-27 16:31:10 +08:00
go.mod refactor handlers 2019-07-25 16:20:01 +08:00
go.sum refactor handlers 2019-07-25 16:20:01 +08:00
main.go make dir before create cache file 2019-07-25 22:43:19 +08:00

README.md

GOPROXY CircleCI

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

Requirements

It invokes the local go command to answer requests.

Build

make

Started

./bin/goproxy -listen=0.0.0.0:80 -cacheDir=/tmp/test

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.