Skip to content

Instantly share code, notes, and snippets.

@johnsimcall
Last active October 25, 2022 18:53
Show Gist options
  • Save johnsimcall/a044560b139917b046f2fa3c1c31292c to your computer and use it in GitHub Desktop.
Save johnsimcall/a044560b139917b046f2fa3c1c31292c to your computer and use it in GitHub Desktop.
squid behind squid - squid.conf
### ACL for Approved/Allowed sites, insert below this line in default config
#acl CONNECT method CONNECT
acl Approved_Sites dstdomain "/etc/squid/Approved_Sites.txt"
http_access deny !Approved_Sites
http_access allow Approved_Sites
### Force this proxy to use another proxy
#cache_peer hostname type http_port icp_port options
cache_peer 172.31.255.10 parent 3128 0 default
never_direct allow all #send everything to the cache_peer(s)
### REQUIRED ###
#vcenter.my-domain.com
.openshift.com
.quay.io
.redhat.com
.redhat.io
### REQUIRED FOR oc-mirror ###
.googleapis.com #need storage.googleapis.com for oc-mirror
.github.com #need codeload.github.com for oc-mirror
### OPTIONAL ###
# .docker.io
# .k8s.gcr.io #for nfs-subdir-provisioner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment