From 730c409f8bc2636870ee6aa91917edfc0d8b502a Mon Sep 17 00:00:00 2001 From: wulabing Date: Sun, 19 Jun 2022 22:52:09 +0800 Subject: [PATCH] =?UTF-8?q?ss=5Fwhitelist=20V1.0.2=20[update]=20nginx=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=A8=A1=E6=9D=BF=E5=8F=98?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ss_whitelist/config/nginx.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ss_whitelist/config/nginx.conf b/ss_whitelist/config/nginx.conf index 229b40d..900bd95 100644 --- a/ss_whitelist/config/nginx.conf +++ b/ss_whitelist/config/nginx.conf @@ -85,7 +85,12 @@ http { server{ listen 80; listen [::]:80 ipv6only=on; - location = / { + location / { + auth_basic ""; + auth_basic_user_file /etc/openresty/auth; + add_header Content-Type text/plain; + } + location = /auth { auth_basic ""; auth_basic_user_file /etc/openresty/auth; add_header Content-Type text/plain;