Skip to content

This is a basic auth docker configuration that allows a user to setup proxies with dynamic username/password combinations

Notifications You must be signed in to change notification settings

ionmincu/squid-proxy-basic-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Authentication Squid Docker

Minimal docker image with Squid that only proxies authenticated requests and (optionally) only to certain domains.

Usage

Build the Docker Image

docker build -t squid-auth:1.0 .

Create the new container from the squid-auth:1.0 image

docker run -d -e PROXY_USERNAME=doug.finley -e PROXY_PASSWORD=password -p 3128:3128 squid-auth:1.0

When accessing the proxy, proxy user will be PROXY_USERNAME, and password will be whatever you set in PROXY_PASSWORD

For Example

curl --proxy-basic --proxy-user doug.finley:password --proxy http://127.0.0.1:3128 http://www.google.com

License

BSD

About

This is a basic auth docker configuration that allows a user to setup proxies with dynamic username/password combinations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 80.5%
  • Dockerfile 19.5%