1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-18 03:21:36 +02:00

nginx with PROXY protocol for mail; only set_real_ip_from in 'all' and 'mail' alternatives

This commit is contained in:
Didier 'OdyX' Raboud 2023-03-27 22:41:20 +02:00
parent c833ef1a47
commit 2e40467376
No known key found for this signature in database
GPG Key ID: EA830BC6A684CD7C

View File

@ -325,7 +325,7 @@ mail {
ssl_session_cache shared:SSLMAIL:3m;
{% endif %}
{% if PROXY_PROTOCOL and REAL_IP_FROM %}{% for from_ip in REAL_IP_FROM.split(',') %}
{% if PROXY_PROTOCOL in ['all', 'mail'] and REAL_IP_FROM %}{% for from_ip in REAL_IP_FROM.split(',') %}
set_real_ip_from {{ from_ip }};
{% endfor %}{% endif %}