mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
nextcloud - add logic for BRUTEFORCE_PROTECTION
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
4fa148a2e9
commit
a5aedd2ba3
1 changed files with 8 additions and 0 deletions
|
|
@ -498,6 +498,14 @@ php /var/www/html/occ maintenance:update:htaccess
|
||||||
# Revert dbpersistent setting to check if it fixes too many db connections
|
# Revert dbpersistent setting to check if it fixes too many db connections
|
||||||
php /var/www/html/occ config:system:set dbpersistent --value=false --type=bool
|
php /var/www/html/occ config:system:set dbpersistent --value=false --type=bool
|
||||||
|
|
||||||
|
if [ "$DISABLE_BRUTEFORCE_PROTECTION" = yes ]; then
|
||||||
|
php /var/www/html/occ config:system:set auth.bruteforce.protection.enabled --type=bool --value=false
|
||||||
|
php /var/www/html/occ config:system:set ratelimit.protection.enabled --type=bool --value=false
|
||||||
|
else
|
||||||
|
php /var/www/html/occ config:system:set auth.bruteforce.protection.enabled --type=bool --value=true
|
||||||
|
php /var/www/html/occ config:system:set ratelimit.protection.enabled --type=bool --value=true
|
||||||
|
fi
|
||||||
|
|
||||||
# Disallow creating local external storages when nothing was mounted
|
# Disallow creating local external storages when nothing was mounted
|
||||||
if [ -z "$NEXTCLOUD_MOUNT" ]; then
|
if [ -z "$NEXTCLOUD_MOUNT" ]; then
|
||||||
php /var/www/html/occ config:system:set files_external_allow_create_new_local --type=bool --value=false
|
php /var/www/html/occ config:system:set files_external_allow_create_new_local --type=bool --value=false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue