https://github.com/ryhkml/proxy-server
Squid optimising web delivery - docker compose
https://github.com/ryhkml/proxy-server
blacklist-domains docker docker-compose http-proxy squid
Last synced: about 2 months ago
JSON representation
Squid optimising web delivery - docker compose
- Host: GitHub
- URL: https://github.com/ryhkml/proxy-server
- Owner: ryhkml
- License: mit
- Created: 2022-12-17T17:33:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T17:34:23.000Z (over 3 years ago)
- Last Synced: 2025-01-14T15:52:53.741Z (over 1 year ago)
- Topics: blacklist-domains, docker, docker-compose, http-proxy, squid
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Squid Proxy Docker Compose Personal Usage
#### Add ACL Basic Authentication
Generate username & password first, run `sudo htpasswd -c /etc/squid/passwords `
```
# squid.conf
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwords
auth_param basic realm HTTP Proxy Server
# Optional
# auth_param basic credentialsttl hours
# auth_param basic casesensitive off
acl authenticated proxy_auth REQUIRED
# Optional
# acl authenticated_ips src
# default 0.0.0.0/0
```
#### Add ACL Blacklist Domains
```
# squid.conf
acl BLACKLIST_DOMAINS dstdomain "/etc/squid/deny/BLACKLIST_DOMAINS.txt"
http_access deny BLACKLIST_DOMAINS
```
#### Add Custom Error
```
# squid.conf
error_directory /usr/share/squid/errors/templates
```
For more information about template name, run `cd /usr/share/squid/errors/templates && ls -l`
#### Generate OpenSSL
`openssl req -new -newkey rsa:2048 -sha256 -days -nodes -x509 -extensions v3_ca -keyout squid-ca-key.pem -out squid-ca-cert.pem`
#### Source
Visit [Squid Docker Image](https://hub.docker.com/r/ubuntu/squid)