Add PROXY protocol - not working yet

This commit is contained in:
baudneo
2022-10-09 15:56:06 -06:00
parent 5ed6f3d995
commit 2feb6ccf08
10 changed files with 119 additions and 8 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 %}