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")