Replace edge proxy with nginx

The config makes more sense, and it has more of the features I need, which will come later.
This commit is contained in:
Jake Howard
2021-08-22 22:34:27 +01:00
parent 23fc7bbb12
commit a54d373526
10 changed files with 96 additions and 98 deletions

View File

@ -1,15 +1,15 @@
- name: fail2ban filter
template:
src: files/haproxy-fail2ban-filter.conf
dest: /etc/fail2ban/filter.d/haproxy-basic.conf
src: files/nginx-fail2ban-filter.conf
dest: /etc/fail2ban/filter.d/nginx-tcp.conf
mode: "0600"
become: true
register: fail2ban_filter
- name: fail2ban jail
template:
src: files/haproxy-fail2ban-jail.conf
dest: /etc/fail2ban/jail.d/haproxy.conf
src: files/nginx-fail2ban-jail.conf
dest: /etc/fail2ban/jail.d/nginx.conf
mode: "0600"
become: true
register: fail2ban_jail