From 72ba5ca3f96d065957a2b1dafff92a86e6c76e59 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 3 Sep 2021 21:59:53 +0200 Subject: [PATCH] fix 1789: ensure that nginx resolves ipv4 addresses --- core/nginx/conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index 9ce12980..76f88f21 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -18,7 +18,7 @@ http { keepalive_timeout 65; server_tokens off; absolute_redirect off; - resolver {{ RESOLVER }} valid=30s; + resolver {{ RESOLVER }} ipv6=off valid=30s; {% if REAL_IP_HEADER %} real_ip_header {{ REAL_IP_HEADER }}; @@ -233,7 +233,7 @@ mail { server_name {{ HOSTNAMES.split(",")[0] }}; auth_http http://127.0.0.1:8000/auth/email; proxy_pass_error_message on; - resolver {{ RESOLVER }} valid=30s; + resolver {{ RESOLVER }} ipv6=off valid=30s; {% if TLS and not TLS_ERROR %} include /etc/nginx/tls.conf;