mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
Proxy service work in progress, added options
This commit is contained in:
parent
6b88a1af31
commit
2da8ba225d
@ -9,6 +9,12 @@
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</enabled>
|
||||
<icpPort type="IntegerField">
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>65535</MaximumValue>
|
||||
<ValidationMessage>"ICP port needs to be an integer value between 1 and 65535"</ValidationMessage>
|
||||
<Required>N</Required>
|
||||
</icpPort>
|
||||
<logging>
|
||||
<enable>
|
||||
<accessLog type="BooleanField">
|
||||
@ -31,7 +37,6 @@
|
||||
<forwardedForHandling type="OptionsField">
|
||||
</forwardedForHandling>
|
||||
<uriWhitespaceHandling type="OptionsField">
|
||||
|
||||
</uriWhitespaceHandling>
|
||||
<useViaHeader type="BooleanField">
|
||||
<default>1</default>
|
||||
|
||||
@ -178,6 +178,12 @@ maxheight: define max height of select box, default=170px to hold 5 items
|
||||
'type':'checkbox',
|
||||
'help':'Enable or disable the proxy service.'
|
||||
],
|
||||
['id': 'proxy.general.icpPort',
|
||||
'label':'ICP port',
|
||||
'type':'text',
|
||||
'help':'The port number where Squid sends and receives ICP queries to
|
||||
and from neighbor caches. Leave blank to disable (default). The standard UDP port for ICP is 3130.'
|
||||
],
|
||||
['id': 'proxy.general.logging.enable.accessLog',
|
||||
'label':'Enable access logging',
|
||||
'type':'checkbox',
|
||||
@ -194,8 +200,8 @@ maxheight: define max height of select box, default=170px to hold 5 items
|
||||
'label':'Use alternate DNS-servers',
|
||||
'type':'select_multiple',
|
||||
'style':'tokenize',
|
||||
'help':'Type IPs of alternative DNS servers you like to use.',
|
||||
'hint':'Type IP adresses, followed by Enter.',
|
||||
'help':'Type IPs of alternative DNS servers you like to use. <div class="text-info"><b>TIP: </b>You can also paste a comma seperated list into this field.</div>',
|
||||
'hint':'Type IP adresses, followed by Enter or comma.',
|
||||
'allownew':'true',
|
||||
'advanced':'true'
|
||||
],
|
||||
|
||||
@ -139,4 +139,9 @@ via off
|
||||
# Suppres http version string (default=off)
|
||||
httpd_suppress_version_string on
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.proxy.general.icpPort') %}
|
||||
{% if OPNsense.proxy.general.icpPort != '' %}
|
||||
icp_port {{OPNsense.proxy.general.icpPort}}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Loading…
x
Reference in New Issue
Block a user