mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix: update HTTP3 configuration to include TLSv1.3 checks and streamline rule removals
This commit is contained in:
parent
eee1e191e0
commit
b9879419af
2 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{%- if USE_MODSECURITY == "yes" and MODSECURITY_CRS_VERSION == "3" and HTTP3 == "yes" -%}
|
||||
{%- if USE_MODSECURITY == "yes" and "TLSv1.3" in SSL_PROTOCOLS and HTTP3 == "yes" and USE_PROXY_PROTOCOL == "no" %}
|
||||
{%- if MODSECURITY_CRS_VERSION == "3" %}
|
||||
SecAction \
|
||||
"id:900230,\
|
||||
phase:1,\
|
||||
|
|
@ -6,4 +7,6 @@ SecAction \
|
|||
pass,\
|
||||
t:none,\
|
||||
setvar:'tx.allowed_http_versions=HTTP/1.0 HTTP/1.1 HTTP/2 HTTP/2.0 HTTP/3 HTTP/3.0'"
|
||||
{% endif %}
|
||||
SecRuleRemoveById 920280
|
||||
{%- endif %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
{% if USE_UI == "yes" %}
|
||||
SecRuleRemoveById 930120
|
||||
{% if USE_UI == "yes" and "TLSv1.3" in SSL_PROTOCOLS and HTTP3 == "yes" %}
|
||||
SecRuleRemoveById 920280
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue