Skip to content

Commit

Permalink
Increased modsecurity bodynofileslimit so larger files can be synced (#…
Browse files Browse the repository at this point in the history
…993)

Signed-off-by: Nikolaos Perrakis <[email protected]>
Signed-off-by: nachoparker <[email protected]>
  • Loading branch information
Iolaum authored and nachoparker committed Sep 12, 2019
1 parent 4bd06e6 commit d6afea3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ncp/SECURITY/modsecurity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ configure()
SecRuleRemoveById 981401 # Content-Type Response Header is Missing and X-Content-Type-Options is either missing or not set to 'nosniff'
SecRuleRemoveById 200002 # Failed to parse request body
# UPLOADS ( 5 MB max excluding file size )
SecRequestBodyNoFilesLimit 5242880
# UPLOADS ( https://github.com/nextcloud/nextcloudpi/issues/959#issuecomment-529150562 )
SecRequestBodyNoFilesLimit 536870912
# GENERAL
SecRuleRemoveById 920350 # Host header is a numeric IP address
Expand Down
5 changes: 5 additions & 0 deletions updates/1.17.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ sed -i "s/buster/$RELEASE/g" /etc/apt/sources.list.d/* &>/dev/null || true
apt-get update
apt-get install -y --no-install-recommends php${PHPVER}-gmp

# Update modsecurity config file only if user is already in buster and
# modsecurity is used.
# https://github.com/nextcloud/nextcloudpi/issues/959
is_active_app modsecurity && run_app modsecurity

# docker images only
[[ -f /.docker-image ]] && {
:
Expand Down

0 comments on commit d6afea3

Please sign in to comment.