haproxy-manager-base/templates/hap_backend_http_check.tpl

8 lines
373 B
Smarty
Raw Permalink Normal View History

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