perf:禁用 IPv6 解析

- 在 nginx 配置文件中添加 ipv6=off 参数
- 优化 DNS 解析性能,避免不必要的 IPv6 查询
This commit is contained in:
jmal 2025-07-02 10:02:09 +08:00
parent e77a2c69fb
commit bf64ee0eb6
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;