From c27f7fb5e8efd355ade1b6c3cd3a2dd6bf2e4758 Mon Sep 17 00:00:00 2001 From: jknapp Date: Fri, 7 Mar 2025 17:19:22 -0800 Subject: [PATCH] Adding httpchk options --- templates/hap_backend.tpl | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/hap_backend.tpl b/templates/hap_backend.tpl index 367e566..e559ee2 100644 --- a/templates/hap_backend.tpl +++ b/templates/hap_backend.tpl @@ -1,6 +1,7 @@ backend {{ name }}-backend option forwardfor + option httpchk http-request add-header X-CLIENT-IP %[src] {% if ssl_enabled %}http-request set-header X-Forwarded-Proto https if { ssl_fc }{% endif %} {% for server in servers %}server {{ server.server_name }} {{ server.server_address }}:{{ server.server_port }} {{ server.server_options }}{% endfor %}