mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: fix rule 19 issue
root cause: even if MainRule is successfully parsed, it is currently not supported. So it must be moved to a basic rule.
This commit is contained in:
@@ -13,6 +13,7 @@ location {{ location.matchtype }} {{ location.urlpattern }} {
|
||||
LibInjectionXss;
|
||||
CheckRule "$LIBINJECTION_XSS >= {{ location.xss_block_score }}" BLOCK;
|
||||
{% endif %}
|
||||
BasicRule wl:19;
|
||||
{% set added_policies = [] %}
|
||||
{% if location.custom_policy is defined %}
|
||||
{% for custom_policy_uuid in location.custom_policy.split(',') %}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
MainRule wl:19;
|
||||
{% set naxsi_ruletype = 'main' %}
|
||||
{% set main_policies = [] %}
|
||||
{% set main_rules = [] %}
|
||||
|
||||
Reference in New Issue
Block a user