Added ability to change the hostname and admin email in Proxy

parent c82fdd08
......@@ -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>
......
......@@ -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">
......
......@@ -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}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment