From bf64ee0eb6ec737d31b729c9bab1fdb4e3704678 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 2 Jul 2025 10:02:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E7=A6=81=E7=94=A8=20IPv6=20=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 nginx 配置文件中添加 ipv6=off 参数 - 优化 DNS 解析性能,避免不必要的 IPv6 查询 --- nginx/nginx.conf.no_office.template | 2 +- nginx/nginx.conf.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf.no_office.template b/nginx/nginx.conf.no_office.template index 77cbd22..406310f 100644 --- a/nginx/nginx.conf.no_office.template +++ b/nginx/nginx.conf.no_office.template @@ -16,7 +16,7 @@ http { include mime.types; default_type application/octet-stream; - resolver 127.0.0.11 valid=30s; + resolver 127.0.0.11 valid=30s ipv6=off; # 日志 #access_log /var/log/nginx/access.log main buffer=32k flush=5s; diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 773241a..6a53d5e 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -16,7 +16,7 @@ http { include mime.types; default_type application/octet-stream; - resolver 127.0.0.11 valid=30s; + resolver 127.0.0.11 valid=30s ipv6=off; # 日志 #access_log /var/log/nginx/access.log main buffer=32k flush=5s;