Skip to content

A minimal docker container, running Squid on Alpine with SSLBump, designed for caching NPM/Yarn registries.

Notifications You must be signed in to change notification settings

mountain-pass/squid-npm

 
 

Repository files navigation

Http NPM/Yarn Registry Cache

(Updated 2024-06-13)

A minimal docker container, running Squid on Alpine with SSLBump, designed for caching NPM/Yarn registries.


Configuration

Custom URLs and Cache strategies can be updated by modifying the runtime file squid.conf.


Build Image

docker compose build --no-cache

Quick Start

docker compose up

Configure NPM proxy

npm config set proxy http://localhost:3128
npm config set https-proxy http://localhost:4128
npm config set cafile "$(pwd)/example/certs/CA.pem"

Configure Yarn proxy

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

About

A minimal docker container, running Squid on Alpine with SSLBump, designed for caching NPM/Yarn registries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 59.9%
  • Dockerfile 40.1%