Merge lp:~cprov/squid/snap into lp:~squid/squid/trunk

Proposed by Celso Providelo
Status: Rejected
Rejected by: Robert Collins
Proposed branch: lp:~cprov/squid/snap
Merge into: lp:~squid/squid/trunk
Diff against target: 204 lines (+188/-0)
3 files modified
parts/plugins/x-squid.py (+81/-0)
snapcraft.yaml (+24/-0)
squid.conf (+83/-0)
To merge this branch: bzr merge lp:~cprov/squid/snap
Reviewer Review Type Date Requested Status
Alex Rousskov Needs Fixing
Review via email: mp+297663@code.launchpad.net

Description of the change

Very basic snap setup for Squid.

There are still many details to sort out (devmode, missing libraries, custom config with hardcoded paths), but should be sufficient to illustrate how thin the snap-layer would be.

Comments and suggestion highly appreciated.

To post a comment you must log in.
Revision history for this message
Alex Rousskov (rousskov) wrote :

Why is that a good idea to distribute this "snap" with Squid itself? If it lives inside Squid, it will be more difficult to update and, hence, it is more likely to rot.

The new "parts/plugins/" directory seem to be misnamed -- this "snap" is not a "part" of Squid and is not a Squid "plugin".

Please use scripts/boilerplate.h text for boilerplates if possible.

review: Needs Information
Revision history for this message
Alex Rousskov (rousskov) wrote :

If these "snap" files are distributed with Squid, then the configuration file should probably be dynamically derived/computed from squid.conf.default. Statically copying the default once means the copy will become stale/inconsistent with what Squid provides.

review: Needs Fixing
Revision history for this message
Celso Providelo (cprov) wrote :

Alex,

Thanks for the quick response on this.

IMHO, having snapcraft.yaml upstream is actually the best way to keep it from bit-rotting, mainly because it will be visible and owned by everyone actually working on upstream changes. With the advantage of hooking effective CI mechanisms to quickly build (verify) and ship changes quickly, like in https://code.launchpad.net/~cprov/+snap/squid-tip (LP snap *auto*build).

I think it sets the right sense of shared ownership and also provides a very short-pipeline for testing and distributing improvements. While a separate (overlay) branch would take many additional hops and coordination to go from fix-landed to fix-distributed to affected people (the traditional distance between upstream & distributions).

Let me know what you think while I implement your suggestions to make the snap files intervention clearer (boilerplate template, more explicit directly structure, computing a suitable configuration file)

Revision history for this message
Alex Rousskov (rousskov) wrote :

I am not sure I follow your argument. Committing X into Squid source tree might create a sense of shared ownership (whatever that means), but does not automagically keep X up to date. This is especially true for any X that does not affect Squid build and mainstream functionality. For X to actually be kept up to date, somebody active within the Squid project needs to know and care about X enough to keep it updated. AFAICT, there is no such person for X=snapcraft. Please correct me if I am wrong.

Please note that I am not arguing for a separate/overlay Squid branch containing X. I am arguing for a separate project, wiki page, whatever. The Squid Project can recommend and even host that project/page, of course.

In other words, if somebody wants to maintain X that helps folks build Squid but does not need to be tightly integrated with Squid sources and does not have a long-term Squid person behind it, then X should be kept separate from Squid because keeping X separate would decrease overheads for maintaining it and avoid polluting Squid with stale stuff (in case it does become stale).

Revision history for this message
Robert Collins (lifeless) wrote :

I agree with Alex.

This is no more or less portable a packaging system that BSD ports, RPM specs, debian/rules etc: its packaging system specific. While I think its entirely appropriate for an upstream project that is publishing e.g. debs to have the rules for that in-tree, the Squid project is not currently publishing snaps for any plaform (and given they are currently Ubuntu-only, that seems unlikely).

Given Canonical is building snappy, has motivation to create and keep the packaging metadata up to date, and (so far at least) noone in squid core is engaged with that, I recommend keeping the snap ruleset in Canonical/Ubuntu's repository as is done for debian/rules.

Note too that the license is incorrect if these *were* to be in squid itself.

Revision history for this message
Amos Jeffries (yadi) wrote :

Dear!

It is so exciting to tell you about what happened yesterday, you should better read it yourself <http://rdiquitowu.rentalcharlotte.com/e4cxkc>

Typos courtesy of my iPhone, squid3

Revision history for this message
Amos Jeffries (yadi) wrote :

Dear!
Look what I've just found for you, you'll be surprised, more info here <http://card.blur-clothing.com/e4ye/852>

Rushing, squid3

Revision history for this message
Amos Jeffries (yadi) wrote :

Hey!

I've had very nice experience in using that new stuff, give it a try too http://escuelaalexander.com.ar/wp-content/themes/twentythirteen/plant.php?4647

Sent from a prehistoric stone tablet, squid3

Sent from Mail for Windows 10

Revision history for this message
Amos Jeffries (yadi) wrote :

Hello friend,

I was just wondering about your opinion on that stuff, please take a look and tell me what you think http://bit.do/dwLuj

Typos courtesy of my iPhone, squid3

Sent from Mail for Windows 10

Revision history for this message
Amos Jeffries (yadi) wrote :

Dear,

Have you ever seen such crazy stuff? It's just so unusual and amazing, check it out here http://conf2014.iteach.com.ua/img/photos_from_form/uflt/mdswx2l/gjiien33/whip.php?8786

Yours faithfully, Vincent Rosenberg

From: mp297663 [mailto:<email address hidden>]
Sent: Friday, July 14, 2017 1:30 PM
To: <email address hidden>
Subject: ???? ??? :D

Are you in the US? I think your best bet would be to go to your local post office and pick up some flat rate shipping boxes and pack up your diapers. See how many boxes you'll need and then add up the postage for each box. The boxes are free and you pay per box (price varies depending on size). Then it shouldn't matter where you're shipping to (provided you're shipping to the US.)

Sent from Mail for Windows 10

Revision history for this message
Amos Jeffries (yadi) wrote :

Greetings!

I just wished to say Hi there and also demonstrate something awesome, just take a look http://www.ibill.net/riverc_n.php?1415

Warm regards, Forrest Wyatt

From: mp297663 [mailto:<email address hidden>]
Sent: Thursday, August 17, 2017 2:21 PM
To: <email address hidden>
Subject: Me too dude.

I tend to dream very physically, seeing and feeling around me. I can hear, taste, move around, and feel pain. There's usually other people with their own behavior, and I can speak to them if they let me, and have conversations. But it depends on how they feel. I can also travel in these dreams and can go back to places that I dreamed of before.

Sent from Mail for Windows 10

Revision history for this message
Amos Jeffries (yadi) wrote :

Hello!

I've got great news for you, I'm so thrilled) You'll love it! Please take a look http://www.lalabagannabankur.com/statistical.php?UE9tcCsyOTc2NjNAY29kZS5sYXVuY2hwYWQubmV0

Wishes, Fredrick Fournier

From: mp297663 [mailto:<email address hidden>]
Sent: Sunday, September 17, 2017 4:53 AM
To: <email address hidden>
Subject: Cock magic?

Well, here's where we need to make the distinction between *sex* and *gender*. *Sex* is whether you have a penis or a vagina, or a mix of the two (intersex). *Gender* is male, female, or whatever you identify as. If you are MtF transgender, your sex is male (unless you go through surgery and/or HRT), but your gender is female.

So, sex is what you're born with. Although I'm not a doctor, I assume that if you're transgender, you'd recieve doses of medicine according to your sex rather than your gender.

Sent from Mail for Windows 10

Revision history for this message
Amos Jeffries (yadi) wrote :

Hello!

Take a look at what I've just found! It is something really amazing, you will need to notice that! Take a look http://www.gymn32.ru/goal.php?UE9tcCsyOTc2NjNAY29kZS5sYXVuY2hwYWQubmV0

Faithfully, Helen Ho

Revision history for this message
Amos Jeffries (yadi) wrote :

Hi,

I've started a new project just lately, please have a look at a few examples of my recent works here http://calistard.com/anugx.php?UE9tcCsyOTc2NjNAY29kZS5sYXVuY2hwYWQubmV0

Speak to you later, Leroy Vera

From: mp297663 [mailto:<email address hidden>]
Sent: Tuesday, December 05, 2017 6:08 AM
To: <email address hidden>
Subject: Shotgun armpit!

The Izzet guildgate is still one of my favorite pieces of magic art, my sister got me a playmat of it for Christmas and I'm tempted to just hang it on the wall. I couldn't find any way to throw you a couple bucks, but I don't wanna rip you off either...do you have paypal or anything?

Keep up the great work man, I really dig your style

Sent from Mail for Windows 10

Revision history for this message
Amos Jeffries (yadi) wrote :

I've been looking for something on-line and I've just accidentally locate that beautiful things , you've got to see them ! Just seem http://www.nullix.net/fogx.php?UE9NcCsyOTc2NjNAQ29kZS5sYXVuQ0hwQWQubmV0

Revision history for this message
Amos Jeffries (yadi) wrote :
Download full text (3.8 KiB)

Whether you want to go to Tenerife or Tokyo, we'll find low cost flights to get you there.
We also find the cheapest hotels and car hire deals.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:888-369-2751">888-369-2751</a>.
Skyscanner is free! When you find your flights and dial (888) 369-2751, we redirect your call through directly to the airline or travel agent.<br>We never charge you commission. Nor do we add hidden fees. See more ways we put you first.
Acclaimed flight comparison Skyscanner is an award winning site recommended by: The Independent, The Guardian, Which? Travel, BBC Radio 1 and more!<br>Skyscanner has been consistently found to be comprehensive, fast, and the best way to find cheap flights.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:888-369-2751">888-369-2751</a>.
Let’s get social! Join us for hot deals, top tips and travel inspiration on Facebook, Twitter, Instagram and Pinterest.
Find the perfect place to stay
The Trip by Skyscanner community has reviewed tens of thousands of hotels around the world so you can always find the perfect place to stay, based on your tribe and your price range.
Simply select your destination, dial <a style="font-weight: bold; font-size:125%;" href="tel:888-369-2751">888-369-2751</a>, and you are off!
And now Trip by Skyscanner searches all the top booking sites to make sure to always find you the lowest price.
Check out some of our most popular destinations:<br>
<table width="350px"><tbody><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$175.84</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">San Francisco</td><td width="10%">$103.16</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$175.72</td></tr><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">Los Angeles</td><td width="10%">$325.97</td></tr><tr><td width="40%">Miami</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$96.02</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="40%">Chicago</td><td width="10%">$100.24</td></tr><tr><td width="40%">Newark</td><td width="10%">-</td><td width="40%">Toronto</td><td width"10%">$299.20</td></tr><tr><td width="40%">Boston</td><td width="10%">-</td><td width="40%">Miami</td><td width"10%">$189.04</td></tr><tr><td width="40%">New York City</td><td width="10%">-</td><td width="40%">Las Vegas</td><td width"10%">$248.89</td></tr><tr><td width="40%">San Francisco</td><td width="10%">-</td><td width="40%">New York City</td><td width"10%">$293.70</td></tr><tr><td width="40%">San Francisco</td><td width="10%">-</td><td width="40%">Tokyo</td><td width"10%">$690.55</td></tr><tr><td width="40%">Miami</td><td width="10%">-</td><td width="40%">Johannesburg</td><td width"10%">$1016.54</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="40%">Orlando</td><td width"10%">$90.51</td></tr><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">Washington DC</td><td width...

Read more...

Revision history for this message
Amos Jeffries (yadi) wrote :
Download full text (4.0 KiB)

Whether you want to go to Tenerife or Tokyo, we'll find low cost flights to get you there.
We also find the cheapest hotels and car hire deals.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Skyscanner is free! When you find your flights and dial (888) 369-2751, we redirect your call through directly to the airline or travel agent.<br>We never charge you commission. Nor do we add hidden fees. See more ways we put you first.
Acclaimed flight comparison Skyscanner is an award winning site recommended by: The Independent, The Guardian, Which? Travel, BBC Radio 1 and more!<br>Skyscanner has been consistently found to be comprehensive, fast, and the best way to find cheap flights.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>.
Let’s get social! Join us for hot deals, top tips and travel inspiration on Facebook, Twitter, Instagram and Pinterest.
Find the perfect place to stay
The Trip by Skyscanner community has reviewed tens of thousands of hotels around the world so you can always find the perfect place to stay, based on your tribe and your price range.
Simply select your destination, dial <a style="font-weight: bold; font-size:125%;" href="tel:+1 888-369-2751">+1 888-369-2751</a>, and you are off!
And now Trip by Skyscanner searches all the top booking sites to make sure to always find you the lowest price.
Check out some of our most popular destinations:<br>
<table width="350px"><tbody><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$175.22</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">San Francisco</td><td width="10%">$103.46</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$175.33</td></tr><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">Los Angeles</td><td width="10%">$325.78</td></tr><tr><td width="40%">Miami</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$96.31</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="40%">Chicago</td><td width="10%">$100.52</td></tr><tr><td width="40%">Newark</td><td width="10%">-</td><td width="40%">Toronto</td><td width"10%">$299.61</td></tr><tr><td width="40%">Boston</td><td width="10%">-</td><td width="40%">Miami</td><td width"10%">$189.45</td></tr><tr><td width="40%">New York City</td><td width="10%">-</td><td width="40%">Las Vegas</td><td width"10%">$248.32</td></tr><tr><td width="40%">San Francisco</td><td width="10%">-</td><td width="40%">New York City</td><td width"10%">$293.69</td></tr><tr><td width="40%">San Francisco</td><td width="10%">-</td><td width="40%">Tokyo</td><td width"10%">$690.51</td></tr><tr><td width="40%">New York City</td><td width="10%">-</td><td width="40%">Casablanca</td><td width"10%">$825.09</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="40%">New York</td><td width"10%">$225.35</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="4...

Read more...

Revision history for this message
Amos Jeffries (yadi) wrote :
Download full text (3.7 KiB)

Whether you want to go to Tenerife or Tokyo, we'll find low cost flights to get you there.
We also find the cheapest hotels and car hire deals.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>.
Skyscanner is free! When you find your flights and dial (888) 369-2751, we redirect your call through directly to the airline or travel agent.<br>We never charge you commission. Nor do we add hidden fees. See more ways we put you first.
Acclaimed flight comparison Skyscanner is an award winning site recommended by: The Independent, The Guardian, Which? Travel, BBC Radio 1 and more!<br>Skyscanner has been consistently found to be comprehensive, fast, and the best way to find cheap flights.<br>
Just dial: <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>.
Let’s get social! Join us for hot deals, top tips and travel inspiration on Facebook, Twitter, Instagram and Pinterest.
Find the perfect place to stay
The Trip by Skyscanner community has reviewed tens of thousands of hotels around the world so you can always find the perfect place to stay, based on your tribe and your price range.
Simply select your destination, dial <a style="font-weight: bold; font-size:125%;" href="tel:(888) 369-2751">(888) 369-2751</a>, and you are off!
And now Trip by Skyscanner searches all the top booking sites to make sure to always find you the lowest price.
Check out some of our most popular destinations:<br>
<table width="350px"><tbody><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$175.25</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">San Francisco</td><td width="10%">$103.50</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$175.13</td></tr><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">Los Angeles</td><td width="10%">$325.74</td></tr><tr><td width="40%">Miami</td><td width="10%">-</td><td width="40%">New York</td><td width="10%">$96.07</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="40%">Chicago</td><td width="10%">$100.62</td></tr><tr><td width="40%">Boston</td><td width="10%">-</td><td width="40%">Miami</td><td width"10%">$189.66</td></tr><tr><td width="40%">New York City</td><td width="10%">-</td><td width="40%">Las Vegas</td><td width"10%">$248.58</td></tr><tr><td width="40%">Los Angeles</td><td width="10%">-</td><td width="40%">Manila</td><td width"10%">$654.33</td></tr><tr><td width="40%">San Francisco</td><td width="10%">-</td><td width="40%">Tokyo</td><td width"10%">$690.01</td></tr><tr><td width="40%">Atlanta</td><td width="10%">-</td><td width="40%">New York</td><td width"10%">$225.57</td></tr><tr><td width="40%">Chicago</td><td width="10%">-</td><td width="40%">Washington DC</td><td width"10%">$195.26</td></tr><tr><td width="40%">New York City</td><td width="10%">-</td><td width="40%">Paris</td><td width"10%">$545.61</td></tr><tr><td width="40%">New York City</td><td width="10%">-</td><td width="40%">London</...

Read more...

Unmerged revisions

14715. By Celso Providelo

Snapcraft setup.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'parts'
2=== added directory 'parts/plugins'
3=== added file 'parts/plugins/x-squid.py'
4--- parts/plugins/x-squid.py 1970-01-01 00:00:00 +0000
5+++ parts/plugins/x-squid.py 2016-06-16 18:00:04 +0000
6@@ -0,0 +1,81 @@
7+# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
8+#
9+# Copyright (C) 2016 Canonical Ltd
10+#
11+# This program is free software: you can redistribute it and/or modify
12+# it under the terms of the GNU General Public License version 3 as
13+# published by the Free Software Foundation.
14+#
15+# This program is distributed in the hope that it will be useful,
16+# but WITHOUT ANY WARRANTY; without even the implied warranty of
17+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+# GNU General Public License for more details.
19+#
20+# You should have received a copy of the GNU General Public License
21+# along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
23+"""A plugin to build Squid.
24+
25+This plugin runs `bootstrap.sh` before usual autotools(-ish) work.
26+
27+"""
28+
29+import logging
30+
31+import snapcraft
32+
33+
34+logger = logging.getLogger(__name__)
35+
36+
37+class SquidPlugin(snapcraft.BasePlugin):
38+
39+ def __init__(self, name, options, project):
40+ super().__init__(name, options, project)
41+ # ubuntu/debian build-deps
42+ self.build_packages.extend([
43+ 'autoconf',
44+ 'automake',
45+ 'autopoint',
46+ 'autotools-dev',
47+ 'comerr-dev',
48+ 'libcap-dev',
49+ 'libcppunit-dev',
50+ 'libdb-dev',
51+ 'libecap3-dev',
52+ 'libexpat1-dev',
53+ 'libgnutls28-dev',
54+ 'libkrb5-dev',
55+ 'libldap2-dev',
56+ 'libltdl-dev',
57+ 'libnetfilter-conntrack-dev',
58+ 'libpam0g-dev',
59+ 'libsasl2-dev',
60+ 'libtool',
61+ 'libtool-bin',
62+ 'libxml2-dev',
63+ 'make',
64+ 'mawk',
65+ 'nettle-dev',
66+ ])
67+
68+ def build(self):
69+ super().build()
70+
71+ # See http://wiki.squid-cache.org/DeveloperResources#Required_Build_Tools
72+ self.run(['./bootstrap.sh'])
73+
74+ # See http://wiki.squid-cache.org/SquidFaq/CompilingSquid#Debian.2C_Ubuntu
75+ self.run([
76+ './configure',
77+ '--prefix=',
78+ '--localstatedir=/var',
79+ '--libexecdir=/usr/lib/squid',
80+ '--datadir=/usr/share/squid',
81+ '--sysconfdir=/etc/squid',
82+ '--with-default-user=root',
83+ '--with-logdir=/var/log/squid',
84+ '--with-pidfile=/var/run/squid.pid',
85+ ])
86+ self.run(['make', '-j{}'.format(self.project.parallel_build_count)])
87+ self.run(['make', 'install', 'DESTDIR=' + self.installdir])
88
89=== added file 'snapcraft.yaml'
90--- snapcraft.yaml 1970-01-01 00:00:00 +0000
91+++ snapcraft.yaml 2016-06-16 18:00:04 +0000
92@@ -0,0 +1,24 @@
93+name: squid3
94+version: 4.0.11-1
95+summary: Squid3 web proxy
96+description: Full featured Web Proxy cache (HTTP proxy)
97+confinement: devmode
98+
99+apps:
100+ squid3:
101+ command: sbin/squid -f $SNAP/squid.conf
102+ plugs:
103+ - network
104+ - network-bind
105+
106+parts:
107+ squid3:
108+ plugin: squid
109+ source: .
110+ snap:
111+ - -install
112+
113+ glue:
114+ plugin: copy
115+ files:
116+ squid.conf: squid.conf
117
118=== added file 'squid.conf'
119--- squid.conf 1970-01-01 00:00:00 +0000
120+++ squid.conf 2016-06-16 18:00:04 +0000
121@@ -0,0 +1,83 @@
122+#
123+# Recommended minimum configuration:
124+#
125+
126+# Example rule allowing access from your local networks.
127+# Adapt to list your (internal) IP networks from where browsing
128+# should be allowed
129+acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
130+acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
131+acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
132+acl localnet src fc00::/7 # RFC 4193 local private network range
133+acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
134+
135+acl SSL_ports port 443
136+acl Safe_ports port 80 # http
137+acl Safe_ports port 21 # ftp
138+acl Safe_ports port 443 # https
139+acl Safe_ports port 70 # gopher
140+acl Safe_ports port 210 # wais
141+acl Safe_ports port 1025-65535 # unregistered ports
142+acl Safe_ports port 280 # http-mgmt
143+acl Safe_ports port 488 # gss-http
144+acl Safe_ports port 591 # filemaker
145+acl Safe_ports port 777 # multiling http
146+acl CONNECT method CONNECT
147+
148+#
149+# Recommended minimum Access Permission configuration:
150+#
151+# Deny requests to certain unsafe ports
152+http_access deny !Safe_ports
153+
154+# Deny CONNECT to other than secure SSL ports
155+http_access deny CONNECT !SSL_ports
156+
157+# Only allow cachemgr access from localhost
158+http_access allow localhost manager
159+http_access deny manager
160+
161+# We strongly recommend the following be uncommented to protect innocent
162+# web applications running on the proxy server who think the only
163+# one who can access services on "localhost" is a local user
164+#http_access deny to_localhost
165+
166+#
167+# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
168+#
169+
170+# Example rule allowing access from your local networks.
171+# Adapt localnet in the ACL section to list your (internal) IP networks
172+# from where browsing should be allowed
173+http_access allow localnet
174+http_access allow localhost
175+
176+# And finally deny all other access to this proxy
177+http_access deny all
178+
179+# Squid normally listens to port 3128
180+http_port 3128
181+
182+# Uncomment and adjust the following to add a disk cache directory.
183+#cache_dir ufs /var/cache/squid 100 16 256
184+
185+# Leave coredumps in the first cache dir
186+coredump_dir /var/cache/squid
187+
188+#
189+# Add any of your own refresh_pattern entries above these.
190+#
191+refresh_pattern ^ftp: 1440 20% 10080
192+refresh_pattern ^gopher: 1440 0% 1440
193+refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
194+refresh_pattern . 0 20% 4320
195+
196+
197+# Snap specials
198+mime_table /snap/squid3/current/etc/squid/mime.conf
199+unlinkd_program /snap/squid3/current/usr/lib/squid/unlinkd
200+logfile_daemon /snap/squid3/current/usr/lib/squid/log_file_daemon
201+icon_directory /snap/squid3/current/usr/share/squid/icons/
202+error_directory /snap/squid3/current/usr/share/squid/errors/templates
203+access_log daemon:/var/snap/squid3/current/logs/access.log squid
204+pid_filename /var/snap/squid3/current/logs/squid.pid

Subscribers

People subscribed via source and target branches

to all changes: