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 %}