Add bad bot block list
This commit is contained in:
parent
0d87bf0d97
commit
5fdb1a9f7b
4 changed files with 24 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
path: "{{ dhparam_path }}"
|
||||
size: "{{ dhparam_size | default(4096) }}"
|
||||
|
||||
- name: "Configuration | Get bad user agents"
|
||||
ansible.builtin.shell: "curl {{ bad_user_agents_url }}"
|
||||
register: bad_user_agents
|
||||
|
||||
- name: "Configuration | Copy main configuration"
|
||||
ansible.builtin.template:
|
||||
src: nginx.conf.j2
|
||||
|
@ -28,6 +32,7 @@
|
|||
mode: 0644
|
||||
loop:
|
||||
- bad_clients.conf
|
||||
- bad_bots.conf
|
||||
- reverse_proxy.conf
|
||||
- ssl.conf
|
||||
notify: reload nginx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue