docker-proxy icon indicating copy to clipboard operation
docker-proxy copied to clipboard

Proxying NPM

Open jcantosz opened this issue 8 years ago • 0 comments

Hi,

I'm relatively new to Squid. I was hoping for some expansion on the HTTPS instructions relating to NPM. I am looking to intercept/cache ONLY npm SSL connections.

I modified squid.conf, rebuilt, and started my squid server with run.sh ssl. My other docker images run detect_proxy.sh and npm config set cafile /usr/local/share/ca-certificates/docker-proxy.crt

I've tried a number of variations for my acl:

#acl npmjs url_regex npmjs
#acl npmjs dstdomain .npmjs.org
acl npmjs dst 151.101.56.162 # ip displayed when pinging registry.npmjs.org
...
ssl_bump server-first npmjs
ssl_bump none all
...

Any ideas on where I am going wrong?

Thanks, ~ Jesse

jcantosz avatar Apr 28 '17 15:04 jcantosz