mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/haproxy: new param for advanced bind options, fixes #28
This commit is contained in:
parent
30590043e5
commit
5c2c077aa2
3 changed files with 11 additions and 1 deletions
|
|
@ -26,6 +26,13 @@
|
|||
<help><![CDATA[Configure listen addresses for this frontend, i.e. 127.0.0.1:8080 or www.example.com:443. Use TAB key to complete typing a listen address.]]></help>
|
||||
<hint>Enter address:port here. Finish with TAB.</hint>
|
||||
</field>
|
||||
<field>
|
||||
<id>frontend.bindOptions</id>
|
||||
<label>Advanced Bind Options</label>
|
||||
<type>text</type>
|
||||
<help><![CDATA[A list of parameters that will be appended to every Listen Address line.<br/>Example: accept-proxy npn http/1.1<br/><div class="text-info"><b>NOTE:</b> The syntax will not be checked, use at your own risk!</div>]]></help>
|
||||
<advanced>true</advanced>
|
||||
</field>
|
||||
<field>
|
||||
<id>frontend.mode</id>
|
||||
<label>Type</label>
|
||||
|
|
|
|||
|
|
@ -252,6 +252,9 @@
|
|||
<ChangeCase>lower</ChangeCase>
|
||||
<ValidationMessage>Please provide a valid listen address, i.e. 127.0.0.1:8080 or www.example.com:443. Port range as start-end, i.e. 127.0.0.1:1220-1240.</ValidationMessage>
|
||||
</bind>
|
||||
<bindOptions type="TextField">
|
||||
<Required>N</Required>
|
||||
</bindOptions>
|
||||
<mode type="OptionField">
|
||||
<Required>Y</Required>
|
||||
<default>http</default>
|
||||
|
|
|
|||
|
|
@ -564,7 +564,7 @@ frontend {{frontend.name}}
|
|||
{# # bind/listen configuration #}
|
||||
{% if frontend.bind|default("") != "" %}
|
||||
{% for bind in frontend.bind.split(",") %}
|
||||
bind {{bind}} name {{bind}} {% if frontend.ssl_enabled == '1' and ssl_certs|default("") != "" %}ssl {{ ssl_options }}{{ssl_certs|join(' ')}} {% endif %}
|
||||
bind {{bind}} name {{bind}} {% if frontend.bindOptions|default("") != "" %}{{ frontend.bindOptions }} {% endif %}{% if frontend.ssl_enabled == '1' and ssl_certs|default("") != "" %}ssl {{ ssl_options }}{{ssl_certs|join(' ')}} {% endif %}
|
||||
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue