mirror of
https://github.com/simon987/scripts.git
synced 2025-04-10 05:46:44 +00:00
Add squid config
This commit is contained in:
parent
b74f9e6298
commit
8b3c3487ee
11
mk_squid
Executable file
11
mk_squid
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
confdir="$(dirname "$0")"
|
||||||
|
|
||||||
|
# htpasswd -cb -B -C 10 ./passwords username password
|
||||||
|
|
||||||
|
docker run --name squid -d --restart=always \
|
||||||
|
--publish 3128:3128 \
|
||||||
|
--volume "${confdir}/squid.conf:/etc/squid/squid.conf" \
|
||||||
|
--volume "${confdir}/passwords:/etc/squid/passwords" \
|
||||||
|
sameersbn/squid:3.5.27-2
|
6
squid.conf
Normal file
6
squid.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
|
||||||
|
auth_param basic realm proxy
|
||||||
|
acl authenticated proxy_auth REQUIRED
|
||||||
|
http_access allow authenticated
|
||||||
|
|
||||||
|
http_port 3128
|
Loading…
x
Reference in New Issue
Block a user