Add support for store_id_program
This commit is contained in:
parent
73dc9d227c
commit
0fd49bbca3
|
@ -9,7 +9,7 @@ RUN apk add --no-cache build-base && \
|
|||
FROM docker.io/library/alpine:3.16
|
||||
|
||||
# hadolint ignore=DL3018
|
||||
RUN apk add --no-cache squid openssl darkhttpd
|
||||
RUN apk add --no-cache squid openssl darkhttpd netcat-openbsd
|
||||
COPY run.sh /
|
||||
COPY install-ca.sh /static/
|
||||
COPY squid.conf rewrites.yaml /etc/squid/
|
||||
|
|
15
run.sh
15
run.sh
|
@ -27,17 +27,18 @@ done
|
|||
|
||||
(
|
||||
sleep 1
|
||||
/usr/local/bin/squid-rewriter -v \
|
||||
-listen 127.0.0.1:7777 \
|
||||
-dump /static/rewrites.txt \
|
||||
2>&1 | logger -p daemon.info -t rewriter
|
||||
) &
|
||||
|
||||
(
|
||||
sleep 2
|
||||
darkhttpd /static --port 9999 --chroot --daemon \
|
||||
--uid nobody --gid nobody \
|
||||
--no-listing
|
||||
squid -s
|
||||
) &
|
||||
|
||||
(
|
||||
sleep 3
|
||||
# Force the spawning of the rewrite process to avoid slowing down the first
|
||||
# client request
|
||||
http_proxy=http://127.0.0.1:3128 wget -qO /dev/null http://proxy/ca.crt
|
||||
) &
|
||||
|
||||
syslogd -n -O -
|
||||
|
|
|
@ -48,8 +48,10 @@ refresh_pattern \.apk$ 129600 100% 129600
|
|||
refresh_pattern \.(tar|iso)(\.[zZ]|\.gz|\.bz2?|\.xz|\.zstd?)?(\.sig)?$ 129600 100% 129600
|
||||
refresh_pattern . 0 20% 4320
|
||||
|
||||
url_rewrite_children 1
|
||||
url_rewrite_program /usr/local/bin/squid-rewriter
|
||||
url_rewrite_children 4 startup=1 idle=1 concurrency=5
|
||||
url_rewrite_program /usr/bin/nc -q 0 127.0.0.1 7777
|
||||
store_id_children 4 startup=1 idle=1 concurrency=5
|
||||
store_id_program /usr/bin/nc -q 0 127.0.0.1 7777
|
||||
|
||||
sslcrtd_program /usr/lib/squid/security_file_certgen -s /certs/ssl_db -M 4MB
|
||||
acl step1 at_step SslBump1
|
||||
|
|
Loading…
Reference in New Issue