PROXY Protocol support implementation

This commit is contained in:
Stefano Badoino
2022-02-23 11:32:39 +01:00
parent b6875487fd
commit ecb27521b4
10 changed files with 122 additions and 9 deletions

View File

@@ -0,0 +1,6 @@
{% if enable_proxy_protocol == 1 or enable_proxy_protocol == true %}
{% if load_balancer_ip != '' %}
set_real_ip_from {{ load_balancer_ip }};
real_ip_header proxy_protocol;
{% endif %}
{% endif %}