PROXY Protocol support implementation

This commit is contained in:
Stefano Badoino
2022-02-23 11:32:39 +01:00
committed by Joel Baldauf
parent 4db34f5894
commit 690411a1ed
10 changed files with 122 additions and 9 deletions
+6
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 %}