From 825442a4e301fc160055d0a434d52a2087b82ac3 Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 1 Mar 2021 18:46:52 +0100 Subject: [PATCH] correct fail2ban nextcloud --- tasks/main.yml | 2 +- templates/fail2ban/nextcloud.local.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index a3e4f63..ebd6e45 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -149,7 +149,7 @@ - name: Install fail2ban jail template: src: fail2ban/nextcloud.local.j2 - dest: /etc/fail2ban/jail.d/nextcloud_local + dest: /etc/fail2ban/jail.d/nextcloud.local owner: root group: root mode: 0644 diff --git a/templates/fail2ban/nextcloud.local.j2 b/templates/fail2ban/nextcloud.local.j2 index 5444b69..4775e65 100644 --- a/templates/fail2ban/nextcloud.local.j2 +++ b/templates/fail2ban/nextcloud.local.j2 @@ -1,4 +1,4 @@ -[gitea] +[nextcloud] enabled = true port = http,https filter = nextcloud @@ -6,4 +6,4 @@ logpath = {{ nextcloud_datadirectory }}/nextcloud.log maxretry = {{ nextcloud_fail2ban_jail_maxretry }} findtime = {{ nextcloud_fail2ban_jail_findtime }} bantime = {{ nextcloud_fail2ban_jail_bantime }} -action = {{ nextcloud_fail2ban_jail_action }} \ No newline at end of file +action = {{ nextcloud_fail2ban_jail_action }}