mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
Allow nginx to lookup IPv6 addresses
It creates issues with RSPAMD/HFILTER_HOSTNAME_UNKNOWN on v6 enabled setups see https://github.com/Mailu/Mailu/issues/2260#issuecomment-1066797661
This commit is contained in:
parent
8cc91bad75
commit
9b952da6c2
@ -17,7 +17,7 @@ http {
|
|||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
absolute_redirect off;
|
absolute_redirect off;
|
||||||
resolver {{ RESOLVER }} ipv6=off valid=30s;
|
resolver {{ RESOLVER }} valid=30s;
|
||||||
|
|
||||||
{% if REAL_IP_HEADER %}
|
{% if REAL_IP_HEADER %}
|
||||||
real_ip_header {{ REAL_IP_HEADER }};
|
real_ip_header {{ REAL_IP_HEADER }};
|
||||||
@ -254,7 +254,7 @@ mail {
|
|||||||
server_name {{ HOSTNAMES.split(",")[0] }};
|
server_name {{ HOSTNAMES.split(",")[0] }};
|
||||||
auth_http http://127.0.0.1:8000/auth/email;
|
auth_http http://127.0.0.1:8000/auth/email;
|
||||||
proxy_pass_error_message on;
|
proxy_pass_error_message on;
|
||||||
resolver {{ RESOLVER }} ipv6=off valid=30s;
|
resolver {{ RESOLVER }} valid=30s;
|
||||||
error_log /dev/stderr info;
|
error_log /dev/stderr info;
|
||||||
|
|
||||||
{% if TLS and not TLS_ERROR %}
|
{% if TLS and not TLS_ERROR %}
|
||||||
|
Loading…
Reference in New Issue
Block a user