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.
Tag | Dockerfile Build Context |
---|---|
:1.25.3 , :latest |
View |
:1.24.0 |
View |
:1.23.4 |
View |
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
Name | Description | Default value | Example value |
---|---|---|---|
RESOLVER |
resolver directive in nginx.conf |
1.1.1.1 ipv6=off |
127.0.0.11 ipv6=off |
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 .
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
.
- @hinata for the original fork: https://github.com/hinata/nginx-forward-proxy