nafisfaysal / goproxy

A global proxy for Go modules.

Home Page:https://goproxy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A global proxy for Go modules.

https://goproxy.io

License:MIT License


Languages

Language:Go 66.6%Language:Shell 21.0%Language:HTML 10.9%Language:Dockerfile 1.4%