HUB
Sign inSign up

donuk/httpurlbasedproxy

By donuk

•Updated 3 days ago

Forwards incoming http requests to different backends depending on the request urls.

Image
0

2.2K

donuk/httpurlbasedproxy repository overview

Also on github:

https://github.com/donuk/docker-httpurlbasedproxy⁠

Show dockerhub on http://localhost/docker⁠ and duckduckgo on http://localhost/duck⁠

docker run -p 80:80 -e PROXY_BACKEND_1=/docker:https://dockerhub-mirror.hs.vc⁠ -e PROXY_BACKEND_2=/duck:https://duckduckgo.com⁠ --rm donuk/httpurlbasedproxy

If your backend proxies change ip frequently (e.g. if they are local services undergoing updates) you can use environment variable SHORT_DNS_TTL=yes to reduce dns caching times and prevent 502 errors.

Tag summary

Content type

Image

Digest

sha256:9ecd06c11…

Size

77.4 MB

Last updated

3 days ago

docker pull donuk/httpurlbasedproxy