Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
220cb8c8
Commit
220cb8c8
authored
Nov 06, 2019
by
Phillip Smith (fukawi2)
Browse files
make archwiki role depend on fail2ban role so we can reuse handlers
parent
e6ad1aa9
Changes
3
Hide whitespace changes
Inline
Side-by-side
roles/archwiki/meta/main.yml
0 → 100644
View file @
220cb8c8
dependencies
:
-
role
:
fail2ban
roles/archwiki/tasks/main.yml
View file @
220cb8c8
...
...
@@ -101,11 +101,15 @@
-
name
:
install fail2ban rate-limit filter
template
:
src=fail2ban.filter.j2 dest=/etc/fail2ban/filter.d/nginx-dos.local owner=root group=root mode=0644
notify
:
-
restart fail2ban
tags
:
-
fail2ban
-
name
:
install fail2ban rate-limit jail
template
:
src=fail2ban.jail.j2 dest=/etc/fail2ban/jail.d/nginx-dos.local owner=root group=root mode=0644
notify
:
-
restart fail2ban
tags
:
-
fail2ban
...
...
roles/archwiki/templates/fail2ban.jail.j2
View file @
220cb8c8
...
...
@@ -3,7 +3,7 @@
#
[wiki-nginx-dos]
enabled =
tru
e
enabled =
fals
e
filter = nginx-dos
action = iptables-multiport[name=ReqLimit, port="http,https", protocol=tcp]
logpath = /var/log/nginx/wiki.archlinux.org/access.log
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment