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:
parent
722c468e8f
commit
e77a2c69fb
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user