mirror of
https://github.com/b4tman/docker-squid.git
synced 2026-03-12 07:23:46 +00:00
Enable localnet ACL by default in base image
This commit is contained in:
@@ -139,6 +139,7 @@ RUN install -d -o squid -g squid \
|
||||
/etc/squid/conf.d \
|
||||
/etc/squid/conf.d.tail && \
|
||||
touch /etc/squid/conf.d/placeholder.conf
|
||||
COPY localnet.conf /etc/squid/conf.d/
|
||||
COPY squid-log.conf /etc/squid/conf.d.tail/
|
||||
|
||||
VOLUME ["/var/cache/squid"]
|
||||
|
||||
@@ -30,6 +30,9 @@ docker-compose up
|
||||
|
||||
# Configuration
|
||||
|
||||
By default, the image now includes a local network allow-list (`/etc/squid/conf.d/localnet.conf`) so clients from RFC1918/RFC4193 ranges can connect without mounting an extra ACL file.
|
||||
|
||||
|
||||
## Environment variables:
|
||||
|
||||
- **SQUID_CONFIG_FILE**: Specify the configuration file for squid. Defaults to `/etc/squid/squid.conf`.
|
||||
|
||||
@@ -2,8 +2,6 @@ version: '2.3'
|
||||
services:
|
||||
proxy:
|
||||
image: "${TEST_TAG}"
|
||||
volumes:
|
||||
- './test_localnet.conf:/etc/squid/conf.d/test_localnet.conf:ro'
|
||||
healthcheck:
|
||||
test: ["CMD", "sh", "-exc", "squidclient -T 3 mgr:info 2> /dev/null | grep -qF '200 OK'"]
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user