mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Implement squid "workers". (#4393)
This commit is contained in:
@@ -339,6 +339,13 @@
|
||||
<allownew>true</allownew>
|
||||
<help>Create a list of sites which may not be inspected, for example bank sites. Prefix the domain with a . to accept all subdomains (e.g. .google.com).</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>proxy.forward.workers</id>
|
||||
<label>Number of squid workers</label>
|
||||
<type>text</type>
|
||||
<help>Start N main Squid process daemons (i.e., SMP mode). Requires Restart. Default: 1</help>
|
||||
<advanced>true</advanced>
|
||||
</field>
|
||||
<field>
|
||||
<id>proxy.forward.ssl_crtd_storage_max_size</id>
|
||||
<label>SSL cache size</label>
|
||||
|
||||
@@ -282,6 +282,12 @@
|
||||
<Mask>/^([a-zA-Z0-9\.:\[\]\s\-]*?,)*([a-zA-Z0-9\.:\[\]\s\-]*)$/</Mask>
|
||||
<ValidationMessage>Please enter ip addresses or domain names here</ValidationMessage>
|
||||
</sslnobumpsites>
|
||||
<workers type="IntegerField">
|
||||
<Default>1</Default>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>100</MaximumValue>
|
||||
<ValidationMessage>worker number needs to be an integer value between 1 and 100</ValidationMessage>
|
||||
</workers>
|
||||
<ssl_crtd_storage_max_size type="IntegerField">
|
||||
<Required>Y</Required>
|
||||
<Default>4</Default>
|
||||
|
||||
@@ -53,6 +53,10 @@
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if not helpers.empty('OPNsense.proxy.forward.workers') %}
|
||||
workers {{ OPNsense.proxy.forward.workers }}
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.proxy.forward.sslbump') and OPNsense.proxy.forward.sslbump == '1' %}
|
||||
# setup ssl re-cert
|
||||
sslcrtd_program /usr/local/libexec/squid/security_file_certgen -s /var/squid/ssl_crtd -M {{ OPNsense.proxy.forward.ssl_crtd_storage_max_size|default('4') }}MB
|
||||
|
||||
Reference in New Issue
Block a user