mirror of https://github.com/Aidaho12/haproxy-wi
v8.2.1: Strip single quotes from descriptions, add HTTP/2 support in models
parent
f08a049d72
commit
9755fe1513
|
@ -655,6 +655,7 @@ class NginxProxyPassRequest(BaseModel):
|
||||||
ssl_crt: Optional[str] = None
|
ssl_crt: Optional[str] = None
|
||||||
ssl_key: Optional[str] = None
|
ssl_key: Optional[str] = None
|
||||||
ssl_offloading: Optional[bool] = False
|
ssl_offloading: Optional[bool] = False
|
||||||
|
http2: Optional[bool] = False
|
||||||
action: Optional[Literal['save', 'test', 'reload', 'restart']] = 'reload'
|
action: Optional[Literal['save', 'test', 'reload', 'restart']] = 'reload'
|
||||||
compression: bool = False
|
compression: bool = False
|
||||||
compression_level: Annotated[int, Gt(0), Le(10)] = 6
|
compression_level: Annotated[int, Gt(0), Le(10)] = 6
|
||||||
|
|
|
@ -77,7 +77,7 @@ def check_server(server_id):
|
||||||
'firewall': server.firewall_enable,
|
'firewall': server.firewall_enable,
|
||||||
'slave': server.master,
|
'slave': server.master,
|
||||||
'type_ip': server.type_ip,
|
'type_ip': server.type_ip,
|
||||||
'description': server.description,
|
'description': server.description.replace("'", ""),
|
||||||
'protected': server.protected,
|
'protected': server.protected,
|
||||||
}
|
}
|
||||||
return jsonify(status)
|
return jsonify(status)
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
<td>
|
<td>
|
||||||
{% set id = 'desc-' + server.0|string() %}
|
{% set id = 'desc-' + server.0|string() %}
|
||||||
{% if server.11 is not none %}
|
{% if server.11 is not none %}
|
||||||
{{ input(id, value=server.11.replace("'", ""), size='20') }}
|
{{ input(id, value=server.11|replace("'", ""), size='20') }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ input(id, size='20') }}
|
{{ input(id, size='20') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -248,7 +248,7 @@
|
||||||
{% if s.3 == '' %}
|
{% if s.3 == '' %}
|
||||||
{{lang.words.no_desc|title()}}
|
{{lang.words.no_desc|title()}}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{s.3}}
|
{{s.3|replace("'", "")}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
<b>{{lang.words.version|title()}}</b>: <span id="service-version-{{ s.0 }}"></span>
|
<b>{{lang.words.version|title()}}</b>: <span id="service-version-{{ s.0 }}"></span>
|
||||||
|
|
Loading…
Reference in New Issue