(Updated 2024-06-13)
A minimal docker container, running Squid on Alpine with SSLBump, designed for caching NPM/Yarn registries.
Custom URLs and Cache strategies can be updated by modifying the runtime file squid.conf
.
docker compose build --no-cache
docker compose up
npm config set proxy http://localhost:3128
npm config set https-proxy http://localhost:4128
npm config set cafile "$(pwd)/example/certs/CA.pem"
yarn config set proxy http://localhost:3128 -g
yarn config set https-proxy http://localhost:4128 -g
yarn config set cafile "$(pwd)/example/certs/CA.pem" -g