All Projects → goproxyio → Goproxy

goproxyio / Goproxy

Licence: mit
A global proxy for Go modules.

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to Goproxy

Goproxy.cn
The most trusted Go module proxy in China.
Stars: ✭ 5,530 (+8.82%)
Mutual labels:  module, proxy, goproxy
Goproxy
A minimalist Go module proxy handler.
Stars: ✭ 561 (-88.96%)
Mutual labels:  module, proxy
Athens
A Go module datastore and proxy
Stars: ✭ 3,736 (-26.49%)
Mutual labels:  proxy, goproxy
Xx Mini
👻 XX-Net 精简版
Stars: ✭ 472 (-90.71%)
Mutual labels:  proxy
Cross Origin
🌀 跨域demo。CORS、JSONP、postMessage、websocket、document.domain、window.name、iframe等示例
Stars: ✭ 475 (-90.65%)
Mutual labels:  proxy
Scrapy Rotating Proxies
use multiple proxies with Scrapy
Stars: ✭ 488 (-90.4%)
Mutual labels:  proxy
Weaver
An Advanced HTTP Reverse Proxy with Dynamic Sharding Strategies
Stars: ✭ 510 (-89.96%)
Mutual labels:  proxy
Fetch Some Proxies
Simple Python script for fetching "some" (usable) proxies
Stars: ✭ 470 (-90.75%)
Mutual labels:  proxy
Aws Es Proxy
aws-es-proxy is a small web server application sitting between your HTTP client (browser, curl, etc...) and Amazon Elasticsearch service.
Stars: ✭ 504 (-90.08%)
Mutual labels:  proxy
Avege
Yet Another Redsocks Golang Fork
Stars: ✭ 486 (-90.44%)
Mutual labels:  proxy
Dosvpn
🚀 极速、简单、开源的 VPN 访问外网学习先进科学技术的必备工具
Stars: ✭ 485 (-90.46%)
Mutual labels:  proxy
Cuteit
IP obfuscator made to make a malicious ip a bit cuter
Stars: ✭ 475 (-90.65%)
Mutual labels:  module
Proxy admin free
Proxy是高性能全功能的http代理、https代理、socks5代理、内网穿透、内网穿透p2p、内网穿透代理、内网穿透反向代理、内网穿透服务器、Websocket代理、TCP代理、UDP代理、DNS代理、DNS加密代理,代理API认证,全能跨平台代理服务器。
Stars: ✭ 487 (-90.42%)
Mutual labels:  proxy
Proxyman
Configuring proxy settings made easy.
Stars: ✭ 472 (-90.71%)
Mutual labels:  proxy
Trustmealready
🔓 Disable SSL verification and pinning on Android, system-wide
Stars: ✭ 506 (-90.04%)
Mutual labels:  module
Actinium
A 3rd party V2Ray client for Android
Stars: ✭ 470 (-90.75%)
Mutual labels:  proxy
Wrp
Web Rendering Proxy: Use vintage, historical, legacy browsers on modern web
Stars: ✭ 503 (-90.1%)
Mutual labels:  proxy
Lanproxy
lanproxy是一个将局域网个人电脑、服务器代理到公网的内网穿透工具,支持tcp流量转发,可支持任何tcp上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面、http代理、https代理、socks5代理...)。技术交流QQ群 678776401
Stars: ✭ 4,784 (-5.86%)
Mutual labels:  proxy
Reactive React Redux
React Redux binding with React Hooks and Proxy
Stars: ✭ 480 (-90.55%)
Mutual labels:  proxy
Localdots
HTTPS domains for localhost. 🏠
Stars: ✭ 486 (-90.44%)
Mutual labels:  proxy

GOPROXY

CircleCI Go Report Card GoDoc

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

Requirements

It invokes the local go command to answer requests.
The default cacheDir is GOPATH, you can set it up by yourself according to the situation.

Build

git clone https://github.com/goproxyio/goproxy.git
cd goproxy
make

Started

Proxy mode

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

If you run go get -v pkg in the proxy machine, should set a new GOPATH which is different from the old GOPATH, or mayebe deadlock. See the file test/get_test.sh.

Router mode

./bin/goproxy -listen=0.0.0.0:80 -proxy https://goproxy.io

Use the -proxy flag switch to "Router mode", which implements route filter to routing private module or public module .

                                         direct
                      +----------------------------------> private repo
                      |
                 match|pattern
                      |
                  +---+---+           +----------+
go get  +-------> |goproxy| +-------> |goproxy.io| +---> golang.org/x/net
                  +-------+           +----------+
                 router mode           proxy mode

In Router mode, use the -exclude flag set pattern , direct to the repo which match the module path, pattern are matched to the full path specified, not only to the host component.

./bin/goproxy -listen=0.0.0.0:80 -cacheDir=/tmp/test -proxy https://goproxy.io -exclude "*.corp.example.com,rsc.io/private"

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=direct to disable it.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].