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
98b3b2b2
Commit
98b3b2b2
authored
Mar 21, 2016
by
Frédéric LIETART (TheLinuxFr)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EmailField type and add "if helpers.exists ..." to squid.conf
parent
3bcaaa9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Proxy.xml
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
+3
-3
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+4
-0
No files found.
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
View file @
98b3b2b2
...
@@ -69,12 +69,12 @@
...
@@ -69,12 +69,12 @@
<default>
0
</default>
<default>
0
</default>
<Required>
N
</Required>
<Required>
N
</Required>
</suppressVersion>
</suppressVersion>
<VisibleEmail
type=
"
Text
Field"
>
<VisibleEmail
type=
"
Email
Field"
>
<default>
localhost
</default>
<default>
admin@
localhost
</default>
<Required>
N
</Required>
<Required>
N
</Required>
</VisibleEmail>
</VisibleEmail>
<VisibleHostname
type=
"TextField"
>
<VisibleHostname
type=
"TextField"
>
<default>
admin@
localhost
</default>
<default>
localhost
</default>
<Required>
N
</Required>
<Required>
N
</Required>
</VisibleHostname>
</VisibleHostname>
<cache>
<cache>
...
...
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
98b3b2b2
...
@@ -523,7 +523,11 @@ delay_parameters 1 {{OPNsense.proxy.general.traffic.OverallBandwidthTrotteling|i
...
@@ -523,7 +523,11 @@ delay_parameters 1 {{OPNsense.proxy.general.traffic.OverallBandwidthTrotteling|i
{%
endif
%}
{%
endif
%}
# Disable squid logfile rotate to use system defaults
# Disable squid logfile rotate to use system defaults
logfile_rotate
0
logfile_rotate
0
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.VisibleHostname'
) %}
# Define visible hostname
# Define visible hostname
visible_hostname
{{
OPNsense
.
proxy
.
general
.
VisibleHostname
}}
visible_hostname
{{
OPNsense
.
proxy
.
general
.
VisibleHostname
}}
{%
endif
%}
{%
if
helpers
.
exists
(
'OPNsense.proxy.general.VisibleEmail'
) %}
# Define visible email
# Define visible email
cache_mgr
{{
OPNsense
.
proxy
.
general
.
VisibleEmail
}}
cache_mgr
{{
OPNsense
.
proxy
.
general
.
VisibleEmail
}}
{%
endif
%}
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