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
3bcaaa9b
Commit
3bcaaa9b
authored
Mar 21, 2016
by
Frédéric LIETART (TheLinuxFr)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ability to change the hostname and admin email in Proxy
parent
c82fdd08
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
main.xml
...pnsense/mvc/app/controllers/OPNsense/Proxy/forms/main.xml
+14
-0
Proxy.xml
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
+8
-0
squid.conf
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
+4
-0
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Proxy/forms/main.xml
View file @
3bcaaa9b
...
...
@@ -74,6 +74,20 @@
<help>
<![CDATA[Select what to do with X-Forwarded for header.]]>
</help>
<advanced>
true
</advanced>
</field>
<field>
<id>
proxy.general.VisibleHostname
</id>
<label>
Visible Hostname
</label>
<type>
text
</type>
<help>
<![CDATA[This is the hostname to be displayed in proxy server error messages.]]>
</help>
<advanced>
true
</advanced>
</field>
<field>
<id>
proxy.general.VisibleEmail
</id>
<label>
Administrator's Email
</label>
<type>
text
</type>
<help>
<![CDATA[This is the email address displayed in error messages to the users.]]>
</help>
<advanced>
true
</advanced>
</field>
<field>
<id>
proxy.general.suppressVersion
</id>
<label>
Suppress version string
</label>
...
...
src/opnsense/mvc/app/models/OPNsense/Proxy/Proxy.xml
View file @
3bcaaa9b
...
...
@@ -69,6 +69,14 @@
<default>
0
</default>
<Required>
N
</Required>
</suppressVersion>
<VisibleEmail
type=
"TextField"
>
<default>
localhost
</default>
<Required>
N
</Required>
</VisibleEmail>
<VisibleHostname
type=
"TextField"
>
<default>
admin@localhost
</default>
<Required>
N
</Required>
</VisibleHostname>
<cache>
<local>
<enabled
type=
"BooleanField"
>
...
...
src/opnsense/service/templates/OPNsense/Proxy/squid.conf
View file @
3bcaaa9b
...
...
@@ -523,3 +523,7 @@ delay_parameters 1 {{OPNsense.proxy.general.traffic.OverallBandwidthTrotteling|i
{%
endif
%}
# Disable squid logfile rotate to use system defaults
logfile_rotate
0
# Define visible hostname
visible_hostname
{{
OPNsense
.
proxy
.
general
.
VisibleHostname
}}
# Define visible email
cache_mgr
{{
OPNsense
.
proxy
.
general
.
VisibleEmail
}}
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