Skip to content

A http proxy server, written in Go and wrapped into docker with minimal image size

License

Notifications You must be signed in to change notification settings

meshchaninov/http-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-proxy

In dockerhub

Simple http server using goproxy with or without auth.

Start container with proxy

docker run -d --name http-proxy -p <PROXY_PORT>:80 -e PROXY_USER=<PROXY_USER> -e PROXY_PASS=<PROXY_PASSWORD> meshchaninov/http-proxy
  • For auth-less mode just do not pass PROXY_USER and PROXY_PASS.
  • Change PROXY_PORT for custom proxy port

Test running service

with auth

curl --proxy http://<PROXY_USER>:<PROXY_PASS>@<DOCKER_MACHINE_IP>:<PROXY_PORT> https://ya.ru 

without auth

curl --proxy http://<DOCKER_MACHINE_IP>:<PROXY_PORT> https://ya.ru 

result must show docker host ip (for bridged network)

About

A http proxy server, written in Go and wrapped into docker with minimal image size

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published