From 259f5957156d28b4922ed8c568b92232cc0eb797 Mon Sep 17 00:00:00 2001 From: wulabing Date: Thu, 2 Jun 2022 17:56:10 +0800 Subject: [PATCH] Xray-0.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [update] 添加配置自动应用,重复IP判断 --- ss_whitelist/config/nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ss_whitelist/config/nginx.conf b/ss_whitelist/config/nginx.conf index 5fdfa43..a594757 100644 --- a/ss_whitelist/config/nginx.conf +++ b/ss_whitelist/config/nginx.conf @@ -85,7 +85,6 @@ http { location / { auth_basic ""; auth_basic_user_file /etc/openresty/auth; - autoindex on; add_header Content-Type text/plain; real_ip_header proxy_protocol; set_real_ip_from 0.0.0.0/8; @@ -101,7 +100,7 @@ http { if string.find(line,clientIP) then m = string.find(line,clientIP) ngx.print("当前IP:"..clientIP.."已存在,无需添加") - end + end end if m == nil then io.write("allow "..clientIP..";\n")