From e77a2c69fb3dd1ad6618cb38755c7d0f01bff95e Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 2 Jul 2025 09:58:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(nginx):=20=E4=B8=BA=20nginx=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=B7=BB=E5=8A=A0=20Docker=20=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=9A=84DNS=20=E8=A7=A3=E6=9E=90=E6=9C=8D=E5=8A=A1=E5=99=A8-?= =?UTF-8?q?=20=E5=9C=A8=20nginx.conf.template=20=E5=92=8C=20nginx.conf.no?= =?UTF-8?q?=5Foffice.template=20=E6=96=87=E4=BB=B6=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=20resolver=20=E9=85=8D=E7=BD=AE=20-=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20DNS=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=B8=BA=20?= =?UTF-8?q?127.0.0.11=EF=BC=8C=E7=BC=93=E5=AD=98=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E4=B8=BA=2030=20=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf.no_office.template | 2 ++ nginx/nginx.conf.template | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nginx/nginx.conf.no_office.template b/nginx/nginx.conf.no_office.template index 4d9fac8..77cbd22 100644 --- a/nginx/nginx.conf.no_office.template +++ b/nginx/nginx.conf.no_office.template @@ -16,6 +16,8 @@ http { include mime.types; default_type application/octet-stream; + resolver 127.0.0.11 valid=30s; + # 日志 #access_log /var/log/nginx/access.log main buffer=32k flush=5s; access_log off; diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index b319f91..773241a 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -16,6 +16,8 @@ http { include mime.types; default_type application/octet-stream; + resolver 127.0.0.11 valid=30s; + # 日志 #access_log /var/log/nginx/access.log main buffer=32k flush=5s; access_log off;