http_port 8085 vhost cache_peer ipfs-gw parent 8080 0 no-query originserver login=PASS cache_dir aufs /var/cache/squid 15000 16 256 cache_mem 2048 MB minimum_object_size 0 bytes maximum_object_size 5120 MB maximum_object_size_in_memory 1024 MB cache_mgr privex cachemgr_passwd REPLACE_ME! logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %h" "%{User-Agent}>h" %Ss:%Sh access_log /var/log/squid/access.log combined cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log logfile_rotate 10 hosts_file /etc/hosts # Basic ACLs acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 185.130.44.0/255.255.255.224 2a07:e00::/32 2a07:e01:5::/48 acl to_localhost dst 127.0.0.0/8 acl Safe_ports port 80 443 8080 8081 8082 8083 8084 8085 8088 acl purge method PURGE acl CONNECT method CONNECT #http_access allow localhost 185.130.44.15 2a07:e00::666 2a07:e01:5::1337 manager http_access allow localhost manager #http_access allow manager 185.130.44.15 #http_access allow manager 2a07:e00::666 #http_access allow manager 2a07:e01:5::1337 http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access allow localhost http_access allow all http_access allow all http_reply_access allow all # 3,600 secs = 1 hour # 21,600 secs = 6 hours # 43,200 secs = 12 hours # 86,400 secs = 1 day # 604,800 secs = 7 days # 2,419,200 secs = 28 days (4 weeks / 1 month) refresh_pattern -i \.ico$ 180 50% 604800 refresh_pattern -i \.(png|jp(e)?g|tif(f)?|gif|tga|web(m|p)|apng)$ 600 50% 86400 refresh_pattern -i \.(vmdk|qcow(2)?|swi|img|iso|bin|mp3|mp4|mkv|ogg|wma|wmv|tgz|tar\.(gz|bz2|xz|lz4)|zip)$ 86400 50% 2419200 refresh_pattern -i \.vmdk\.(SPA|SSA).*$ 86400 50% 2419200 refresh_pattern -i \.qcow2\.(SPA|SSA).*$ 86400 50% 2419200 refresh_pattern -i index.html$ 21600 30% 604800 refresh_pattern -i \/$ 180 10% 86400 refresh_pattern -i \.(css|js)$ 60 10% 21600 refresh_pattern -i ((\.(txt|TXT))|NOTE(S)?|note(s)?|README|readme)$ 60 5% 86400 refresh_pattern -i \.(html|html)$ 600 3% 604800 refresh_pattern -i . 600 10% 86400 refresh_pattern -i \.log 30 10% 180 icp_access allow all cache_effective_group proxy coredump_dir /var/spool/squid forwarded_for on emulate_httpd_log on redirect_rewrites_host_header off buffered_logs on # Do not cache cgi-bin, ? urls, posts, etc. #hierarchy_stoplist cgi-bin ? #acl QUERY urlpath_regex cgi-bin \? acl POST method POST #no_cache deny QUERY no_cache deny POST # Example how to configure Squid to not cache certain URLs #acl adminurl urlpath_regex ^/myadminpanel #no_cache deny adminurl #acl phpmyadminurl urlpath_regex ^/phpmyadmin #no_cache deny phpmyadminurl