When NFS-Ganesha is used behind a HAProxy with proxy protocol support
enabled ganesha requires that HAProxy_Hosts is set to a list of hosts
that are permitted to use the proxy protocol. This change adds support
for specifying HAProxy_Hosts in the ganesha configuration file template.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit
7c7b7b672118c9ec3803f46998a3174cccb6dfb6)
{% if bind_addr %}
Bind_addr = {{ bind_addr }};
{% endif %}
+{% if haproxy_hosts %}
+ HAProxy_Hosts = {{ haproxy_hosts|join(", ") }};
+{% endif %}
}
NFSv4 {