jknapp c27f7fb5e8
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
Adding httpchk options
2025-03-07 17:19:22 -08:00

8 lines
373 B
Smarty

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