net/haproxy: fix ssl certificates on maintenance page

This commit is contained in:
Frank Wall 2026-02-02 18:25:18 +01:00
parent a999d59f57
commit 6594d14d9a
2 changed files with 5 additions and 2 deletions

View file

@ -28,6 +28,9 @@ Added:
* add support for SSL SNI expression to servers (#3756)
* add column "mode" to servers overview (#4632)
Fixed:
* Maintenance tab "SSL Certificates" not working with only one cert
Changed:
* upgrade to HAProxy 3.2 release series (#5147)
* refactor http/tcp rules to make extensions easier

View file

@ -8,14 +8,14 @@
{# ################## #}
{% macro getCA(refId) -%}
{% set result = '{}' %}
{% for data in helpers.getNodeByTag('ca') if data.refid == refId %}
{% for data in helpers.toList('ca') if data.refid == refId %}
{{ data.crt -}}
{% else %}
{{ "{}" }}
{% endfor %}
{%- endmacro %}
{% macro getCert(refId, indent=4) -%}
{% for data in helpers.getNodeByTag('cert') if data.refid == refId %}
{% for data in helpers.toList('cert') if data.refid == refId %}
{% if data.caref %}
{% do data.update({'ca': getCA(data.caref)}) %}
{% else %}