Skip to content

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

License

Notifications You must be signed in to change notification settings

theohbrothers/docker-nginx-forward-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Tag Dockerfile Build Context
:1.25.3, :latest View
:1.24.0 View
:1.23.4 View

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

Name Description Default value Example value
RESOLVER resolver directive in nginx.conf 1.1.1.1 ipv6=off 127.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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 45.3%
  • PowerShell 44.6%
  • Shell 10.1%