diff --git a/config/nginx/conf.d/xuqm.conf b/config/nginx/conf.d/xuqm.conf index 827dd9c..f787ecd 100644 --- a/config/nginx/conf.d/xuqm.conf +++ b/config/nginx/conf.d/xuqm.conf @@ -5,6 +5,10 @@ server { charset utf-8; client_max_body_size 100m; + # Docker 内置 DNS resolver,每 10s 重新解析上游服务 IP + # 容器重建后 IP 变更时 nginx 自动感知,无需手动 reload + resolver 127.0.0.11 valid=10s ipv6=off; + # 健康检查(宿主机 nginx 探活用) location /health { return 200 "ok\n";