diff --git a/ngx/etc/nginx.conf b/ngx/etc/nginx.conf index d8acb4f..eb08068 100755 --- a/ngx/etc/nginx.conf +++ b/ngx/etc/nginx.conf @@ -27,6 +27,9 @@ http { ########## 以下为自定义配置 ########## + # 向 docker dns 请求容器 ip 过期时间 1s + resolver 127.0.0.11 valid=1s; + #自定义变量 $connection_upgrade map $http_upgrade $connection_upgrade { default keep-alive; # 默认为 keep-alive 一般 http 请求