You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-21 00:19:34 +02:00
Trust the IP address from the local subnet
This will only work when SUBNET autodetection is merged
This commit is contained in:
@ -26,6 +26,14 @@ server {
|
|||||||
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
||||||
add_header Referrer-Policy "no-referrer" always;
|
add_header Referrer-Policy "no-referrer" always;
|
||||||
|
|
||||||
|
real_ip_header X-Real-IP;
|
||||||
|
{% for from_ip in SUBNET.split(',') %}
|
||||||
|
set_real_ip_from {{ from_ip }};
|
||||||
|
{% endfor %}
|
||||||
|
{% if SUBNET6 %}{% for from_ip in SUBNET6.split(',') %}
|
||||||
|
set_real_ip_from {{ from_ip }};
|
||||||
|
{% endfor %}{% endif %}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php$args;
|
try_files $uri $uri/ /index.php$args;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user