squid
Browse files- Dockerfile +1 -0
- squid.conf +5 -2
Dockerfile
CHANGED
|
@@ -3,4 +3,5 @@ ENV LANG=C.UTF-8 TZ=Asia/Shanghai SQUID_CONFIG_FILE=/etc/squid/squid.conf
|
|
| 3 |
EXPOSE 7860
|
| 4 |
COPY ./squid.conf /etc/squid/squid.conf
|
| 5 |
|
|
|
|
| 6 |
#ENTRYPOINT ["top", "-b"]
|
|
|
|
| 3 |
EXPOSE 7860
|
| 4 |
COPY ./squid.conf /etc/squid/squid.conf
|
| 5 |
|
| 6 |
+
USER root
|
| 7 |
#ENTRYPOINT ["top", "-b"]
|
squid.conf
CHANGED
|
@@ -65,11 +65,14 @@ http_port 7860
|
|
| 65 |
#cache_dir ufs /var/spool/squid 100 16 256
|
| 66 |
|
| 67 |
# Leave coredumps in the first cache dir
|
| 68 |
-
coredump_dir /var/spool/squid
|
| 69 |
|
| 70 |
#
|
| 71 |
# Add any of your own refresh_pattern entries above these.
|
| 72 |
#
|
| 73 |
refresh_pattern ^ftp: 1440 20% 10080
|
| 74 |
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
|
| 75 |
-
refresh_pattern . 0 20% 4320
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
#cache_dir ufs /var/spool/squid 100 16 256
|
| 66 |
|
| 67 |
# Leave coredumps in the first cache dir
|
| 68 |
+
; coredump_dir /var/spool/squid
|
| 69 |
|
| 70 |
#
|
| 71 |
# Add any of your own refresh_pattern entries above these.
|
| 72 |
#
|
| 73 |
refresh_pattern ^ftp: 1440 20% 10080
|
| 74 |
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
|
| 75 |
+
refresh_pattern . 0 20% 4320
|
| 76 |
+
|
| 77 |
+
cache_effective_user nobody
|
| 78 |
+
cache_effective_group nobody
|