Skip to content

Commit

Permalink
Merge pull request #3226 from iqt4/os-haproxy_ssl-healthcheck
Browse files Browse the repository at this point in the history
net/haproxy: fix HAProxy SSL preferences in healthchecks, closes #3221
  • Loading branch information
fraenki committed Feb 7, 2023
2 parents 3c4e3e7 + 75522fd commit f3bf7e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ backend {{backend.name}}
{# # 2. in health checks: to verify *only* health check communication to this server #}
{# # When 1. is enabled, health checks are automatically secured. #}
{# # Use-case for 2: when using TCP for server communication, but HTTPS for health checks. #}
{% if server_data.ssl|default("") == '1' or (healthcheck_enabled == '1' and healthcheck_data.force_ssl|default('') == '1') %}
{% if server_data.ssl|default("") == '1' or (healthcheck_enabled == '1' and (healthcheck_data.ssl|default('') == 'ssl' or healthcheck_data.ssl|default('') == 'sslsni')) %}
{# # get status of ssl verification #}
{% set ssl_verify_enabled = '0' %}
{% if helpers.exists('OPNsense.HAProxy.general.tuning.sslServerVerify') and OPNsense.HAProxy.general.tuning.sslServerVerify|default("") != 'ignore' %}
Expand Down

0 comments on commit f3bf7e8

Please sign in to comment.