diff --git a/cmd/server/nginx_conf/website_default.conf b/cmd/server/nginx_conf/website_default.conf index 6ff2badb9..c6ffb7e8c 100644 --- a/cmd/server/nginx_conf/website_default.conf +++ b/cmd/server/nginx_conf/website_default.conf @@ -9,7 +9,7 @@ server { proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Real-IP $remote_addr; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; + proxy_set_header Upgrade $http_upgrade;` proxy_set_header Connection "upgrade"; @@ -18,13 +18,17 @@ server { access_by_lua_file /www/common/waf/access.lua; set $RulePath /www/sites/domain/waf/rules; set $logdir /www/sites/domain/waf/log; + set $redirect on; + set $attackLog on; set $CCDeny on; - set $attacklog on; - set $whiteModule on; - set $getMatch on; - set $cookieMatch on; - set $postMatch on; - set $Redirect on; + set $urlWhiteAllow on; + set $urlBlockDeny on; + set $argsDeny on; + set $postDeny on; + set $cookieDeny on; + set $fileExtDeny on; + set $ipBlockDeny on; + set $ipWhiteAllow on; location ~ /.well-known/acme-challenge { diff --git a/frontend/src/views/website/website/config/safety/file-block-list/index.vue b/frontend/src/views/website/website/config/safety/file-block-list/index.vue index f0ca4d8a4..b44b289be 100644 --- a/frontend/src/views/website/website/config/safety/file-block-list/index.vue +++ b/frontend/src/views/website/website/config/safety/file-block-list/index.vue @@ -1,6 +1,9 @@ diff --git a/frontend/src/views/website/website/config/safety/ip-list/index.vue b/frontend/src/views/website/website/config/safety/ip-list/index.vue index d7eddeab2..a15ac0098 100644 --- a/frontend/src/views/website/website/config/safety/ip-list/index.vue +++ b/frontend/src/views/website/website/config/safety/ip-list/index.vue @@ -1,6 +1,9 @@