feat(nginx): 为 nginx配置添加 Docker 内部的DNS 解析服务器- 在 nginx.conf.template 和 nginx.conf.no_office.template 文件中添加了 resolver 配置

- 设置 DNS服务器为 127.0.0.11,缓存时间为 30 秒
This commit is contained in:
jmal 2025-07-02 09:58:15 +08:00
parent 722c468e8f
commit e77a2c69fb
2 changed files with 4 additions and 0 deletions

View File

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

View File

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