nginx-proxy-manager/backend/templates/_proxy_protocol.conf
Semjon Nordmann 480c772b98 Add support for proxy_protocol in proxy_hosts and streams
Closes #1114
Related To #1882
Related To #3537
Related To #3618

Co-authored-by: jwklijnsma <janwiebe@janwiebe.eu>
Co-authored-by: SBado <16034687+SBado@users.noreply.github.com>
2024-10-26 21:50:37 +02:00

6 lines
210 B
Plaintext

{% if proxy_protocol_enabled == 1 or proxy_protocol_enabled == true %}
{% if loadbalancer_address != '' %}
set_real_ip_from {{ loadbalancer_address }};
real_ip_header proxy_protocol;
{% endif %}
{% endif %}