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 <nikperrakis@gmail.com>
Signed-off-by: nachoparker <nacho@ownyourbits.com>
  • Loading branch information
Iolaum authored and nachoparker committed Sep 13, 2019
1 parent dbf129f commit 9ee9947
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

[v1.16.5](https://github.com/nextcloud/nextcloudpi/commit/15a1beb) (2019-09-12) nc-datadir: make sure dir exists before check
[v1.16.6](https://github.com/nextcloud/nextcloudpi/commit/d3718d1) (2019-09-11) Increased modsecurity bodynofileslimit so larger files can be synced (#993)

[v1.16.4](https://github.com/nextcloud/nextcloudpi/commit/4bd06e6) (2019-09-10) fail2ban: dont need ufw check in docker
[v1.16.5](https://github.com/nextcloud/nextcloudpi/commit/789f0b5) (2019-09-12) nc-datadir: make sure dir exists before check

[v1.16.4 ](https://github.com/nextcloud/nextcloudpi/commit/4bd06e6) (2019-09-10) fail2ban: dont need ufw check in docker

[v1.16.3 ](https://github.com/nextcloud/nextcloudpi/commit/06005e1) (2019-09-09) nc-datadir: avoid using the symlink

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 9ee9947

Please sign in to comment.