diff --git a/plinth/modules/nextcloud/__init__.py b/plinth/modules/nextcloud/__init__.py index 5e1cad381..4c3b1dbe4 100644 --- a/plinth/modules/nextcloud/__init__.py +++ b/plinth/modules/nextcloud/__init__.py @@ -72,8 +72,6 @@ class NextcloudApp(app_module.App): dropin_configs = DropinConfigs('dropin-configs-nextcloud', [ '/etc/apache2/conf-available/nextcloud-freedombox.conf', - '/etc/fail2ban/jail.d/nextcloud-freedombox.conf', - '/etc/fail2ban/filter.d/nextcloud-freedombox.conf', '/etc/redis/conf.d/freedombox.conf', ]) self.add(dropin_configs) diff --git a/plinth/modules/nextcloud/data/usr/share/freedombox/etc/fail2ban/filter.d/nextcloud-freedombox.conf b/plinth/modules/nextcloud/data/usr/share/freedombox/etc/fail2ban/filter.d/nextcloud-freedombox.conf deleted file mode 100644 index 7f2f0ad4b..000000000 --- a/plinth/modules/nextcloud/data/usr/share/freedombox/etc/fail2ban/filter.d/nextcloud-freedombox.conf +++ /dev/null @@ -1,7 +0,0 @@ -[INCLUDES] -before = common.conf - -[Definition] -_daemon = apache-access -prefregex = %(__prefix_line)s -failregex = \S+ (?::\d+)? - \S+ \[[^\]]*\] "GET /nextcloud/login\?direct=1&user=\S+ HTTP/\S+" 200 diff --git a/plinth/modules/nextcloud/data/usr/share/freedombox/etc/fail2ban/jail.d/nextcloud-freedombox.conf b/plinth/modules/nextcloud/data/usr/share/freedombox/etc/fail2ban/jail.d/nextcloud-freedombox.conf deleted file mode 100644 index a634a6ef9..000000000 --- a/plinth/modules/nextcloud/data/usr/share/freedombox/etc/fail2ban/jail.d/nextcloud-freedombox.conf +++ /dev/null @@ -1,4 +0,0 @@ -[nextcloud-freedombox] -enabled = true -filter = nextcloud-freedombox -journalmatch = SYSLOG_IDENTIFIER=apache-access