HUB
Sign inSign up
docker-nginx-forward-proxy logo

theohbrothers/docker-nginx-forward-proxy

By theohbrothers

•Updated 11 days ago

The 'nginx-foward-proxy' is a so simple HTTP proxy server using the nginx. Dockerized 🐳

Image
0

100K+

theohbrothers/docker-nginx-forward-proxy repository overview

⁠docker-nginx-forward-proxy

github-actions github-release docker-image-size

The nginx-forward-proxy is a so simple HTTP proxy server using the nginx, using ngx_http_proxy_connect_module⁠.

You can easily build a HTTP proxy server using this.

⁠Tags

TagDockerfile Build Context
:1.28.3, :latestView⁠
:1.27.5View⁠
:1.26.3View⁠
:1.25.5View⁠
:1.24.0View⁠
:1.23.4View⁠

⁠Usage

docker run --rm -it -p 3128:3128 theohbrothers/docker-nginx-forward-proxy:latest

# Test it
curl -x http://127.0.0.1:3128 http://example.com
curl -x http://127.0.0.1:3128 https://example.com
# Or
http_proxy=http://127.0.0.1:3128 curl http://example.com
HTTPS_PROXY=http://127.0.0.1:3128 curl https://example.com
⁠Environment variables
NameDescriptionDefault valueExample value
RESOLVERresolver directive in nginx.conf1.1.1.1 ipv6=off127.0.0.11 ipv6=off

⁠Development

Requires Windows powershell or pwsh⁠.

# Install Generate-DockerImageVariants module: https://github.com/theohbrothers/Generate-DockerImageVariants
Install-Module -Name Generate-DockerImageVariants -Repository PSGallery -Scope CurrentUser -Force -Verbose

# Edit ./generate templates

# Generate the variants
Generate-DockerImageVariants .
⁠Variant versions

versions.json⁠ contains a list of Semver⁠ versions, one per line.

To update versions in versions.json:

./Update-Versions.ps1

To update versions in versions.json, and open a PR for each changed version, and merge successful PRs one after another (to prevent merge conflicts), and finally create a tagged release and close milestone:

$env:GITHUB_TOKEN = 'xxx'
./Update-Versions.ps1 -PR -AutoMergeQueue -AutoRelease

To perform a dry run, use -WhatIf.

⁠Credits

Tag summary
Recent tags
Content type
Image
Digest
sha256:28c9893da…
Size
12.7 MB
Last updated
11 days ago
docker pull theohbrothers/docker-nginx-forward-proxy:latest