From 5f8279035865c5c7a564654bf03ce20c08ee79d1 Mon Sep 17 00:00:00 2001 From: Sam Day Date: Tue, 2 Jul 2024 16:26:33 +0200 Subject: [PATCH] node: basic squid config --- node/Dockerfile | 2 ++ node/etc/squid/conf.d/cache-dir.conf | 1 + node/etc/squid/conf.d/icp.conf | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 node/etc/squid/conf.d/cache-dir.conf create mode 100644 node/etc/squid/conf.d/icp.conf diff --git a/node/Dockerfile b/node/Dockerfile index 50471b10..ee38a377 100644 --- a/node/Dockerfile +++ b/node/Dockerfile @@ -25,6 +25,8 @@ COPY usr/ /usr RUN chmod 700 /etc/kubeadm.conf.d && \ ostree container commit +RUN echo 'include /etc/squid/conf.d/*.conf' >> /etc/squid/squid.conf + # enable services RUN systemctl enable \ containerd.service \ diff --git a/node/etc/squid/conf.d/cache-dir.conf b/node/etc/squid/conf.d/cache-dir.conf new file mode 100644 index 00000000..66eaf4a4 --- /dev/null +++ b/node/etc/squid/conf.d/cache-dir.conf @@ -0,0 +1 @@ +cache_dir ufs /var/spool/squid 8192 16 256 diff --git a/node/etc/squid/conf.d/icp.conf b/node/etc/squid/conf.d/icp.conf new file mode 100644 index 00000000..66c81ecc --- /dev/null +++ b/node/etc/squid/conf.d/icp.conf @@ -0,0 +1,2 @@ +icp_port 3130 +icp_access allow localnet