mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
[#1762] Add configurable limit for SecRequestBodyNoFilesLimit in ModSecurity
This commit is contained in:
parent
5155a203f3
commit
0fd01af23c
3 changed files with 11 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
|||
- [FEATURE] Add health check endpoint and integrate it into the scheduler for instance status monitoring
|
||||
- [FEATURE] Add country tracking to bans data
|
||||
- [FEATURE] Refactored the way the database migrations are handled to make it more reliable and faster using alembic
|
||||
- [FEATURE] Add configurable limit for SecRequestBodyNoFilesLimit in ModSecurity via the `MODSECURITY_REQ_BODY_NO_FILES_LIMIT` setting
|
||||
- [DEPRECATION] Remove `X-XSS-Protection` header from the `header` plugin as it is deprecated
|
||||
- [DEPS] Updated coreruleset-v4 version to v4.10.0
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ SecRequestBodyLimit 13107200
|
|||
{% endif %}
|
||||
|
||||
# Maximum data size for requests without files
|
||||
SecRequestBodyNoFilesLimit 131072
|
||||
SecRequestBodyNoFilesLimit {{ MODSECURITY_REQ_BODY_NO_FILES_LIMIT }}
|
||||
|
||||
# Reject requests if bigger than max data size
|
||||
SecRequestBodyLimitAction Reject
|
||||
|
|
|
|||
|
|
@ -79,6 +79,15 @@
|
|||
"label": "SecAuditLogParts",
|
||||
"regex": "^A(([B-K])(?!.*\\2))+Z$",
|
||||
"type": "text"
|
||||
},
|
||||
"MODSECURITY_REQ_BODY_NO_FILES_LIMIT": {
|
||||
"context": "multisite",
|
||||
"default": "131072",
|
||||
"help": "SecRequestBodyNoFilesLimit directive of ModSecurity.",
|
||||
"id": "modsecurity-req-body-no-files-limit",
|
||||
"label": "SecRequestBodyNoFilesLimit",
|
||||
"regex": "^[0-9]+$",
|
||||
"type": "text"
|
||||
}
|
||||
},
|
||||
"jobs": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue