README ¶ Go goproxy Dependencies Go: 1.14.x goproxy Docker: >= 18.06 docker-compose: >= 1.25.0 direnv Setup # 1. Install `docker`, `docker-compose`, `direnv` #------------------------------------------------------------------------------ # 2. Setup #------------------------------------------------------------------------------ cp .envrc.local.sample .envrc.local vi .envrc.local direnv allow . docker-compose build docker-compose up Usage # Allow access docker-compose exec client curl --proxy http://proxy:8080 https://github.com # Allow access(proxy to `proxy2`) docker-compose exec client curl --proxy http://proxy:8080 https://www.google.co.jp # Allow access docker-compose exec client curl --proxy http://proxy:8080 http://neverssl.com # Allow access(proxy to `proxy2`) docker-compose exec client curl --proxy http://proxy:8080 http://abehiroshi.la.coocan.jp # Deny access docker-compose exec client curl --proxy http://proxy:8080 http://nginx # Deny access curl --proxy http://localhost:${DOCKER_HOST_PROXY_PORT} https://github.com # Deny access curl --proxy http://localhost:${DOCKER_HOST_PROXY_PORT} https://www.google.co.jp # Deny access curl --proxy http://localhost:${DOCKER_HOST_PROXY_PORT} http://neverssl.com # Deny access curl --proxy http://localhost:${DOCKER_HOST_PROXY_PORT} http://abehiroshi.la.coocan.jp # Deny access curl --proxy http://localhost:${DOCKER_HOST_PROXY_PORT} http://nginx Refer to elazarl/goproxy: An HTTP proxy library for Go 【Go】net/httpパッケージを読んでhttp.HandleFuncが実行される仕組み - Qiita How to chain HTTPS proxy · Issue #230 · elazarl/goproxy Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files proxy.go Click to show internal directories. Click to hide internal directories.