Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
d3e27cfa
Commit
d3e27cfa
authored
Jan 09, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web proxy: lock down caching completely if set to off
PR:
https://forum.opnsense.org/index.php?topic=4152.0
parent
397c95f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+7
-7
No files found.
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
d3e27cfa
...
...
@@ -264,18 +264,18 @@ icap_enable off
{%
include
"OPNsense/Proxy/squid.user.post_auth.conf"
ignore
missing
with
context
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.cache.local'
) %}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.cache.local'
)
and
OPNsense
.
proxy
.
general
.
cache
.
local
.
enabled
==
'1'
%}
cache_mem
{{
OPNsense
.
proxy
.
general
.
cache
.
local
.
cache_mem
|
default
(
'256'
) }}
MB
{%
if
OPNsense
.
proxy
.
general
.
cache
.
local
.
maximum_object_size
|
default
(
''
) !=
''
%}
{%
if
OPNsense
.
proxy
.
general
.
cache
.
local
.
maximum_object_size
|
default
(
''
) !=
''
%}
maximum_object_size
{{
OPNsense
.
proxy
.
general
.
cache
.
local
.
maximum_object_size
}}
MB
{%
if
OPNsense
.
proxy
.
general
.
cache
.
local
.
maximum_object_size
|
int
>
4
%}
{%
if
OPNsense
.
proxy
.
general
.
cache
.
local
.
maximum_object_size
|
int
>
4
%}
cache_replacement_policy
heap
LFUDA
{%
endif
%}
{%
endif
%}
{%
if
OPNsense
.
proxy
.
general
.
cache
.
local
.
enabled
==
'1'
%}
# Uncomment and adjust the following to add a disk cache directory.
cache_dir
ufs
{{
OPNsense
.
proxy
.
general
.
cache
.
local
.
directory
}} {{
OPNsense
.
proxy
.
general
.
cache
.
local
.
size
}} {{
OPNsense
.
proxy
.
general
.
cache
.
local
.
l1
}} {{
OPNsense
.
proxy
.
general
.
cache
.
local
.
l2
}}
{%
endif
%}
cache_dir
ufs
{{
OPNsense
.
proxy
.
general
.
cache
.
local
.
directory
}} {{
OPNsense
.
proxy
.
general
.
cache
.
local
.
size
}} {{
OPNsense
.
proxy
.
general
.
cache
.
local
.
l1
}} {{
OPNsense
.
proxy
.
general
.
cache
.
local
.
l2
}}
{%
else
%}
cache
deny
all
cache_mem
0
{%
endif
%}
# Leave coredumps in the first cache dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment