Enable link_token method for bot blocking in SearXNG
This commit is contained in:
parent
15aa3bd1bf
commit
13d50e71f6
|
@ -14,6 +14,13 @@
|
||||||
owner: root
|
owner: root
|
||||||
mode: u=rw,g=r,o=r
|
mode: u=rw,g=r,o=r
|
||||||
|
|
||||||
|
- name: Copy SearXNG limiter.toml file
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: limiter.toml.j2
|
||||||
|
dest: "{{ services.searxng.volume }}/limiter.toml"
|
||||||
|
owner: root
|
||||||
|
mode: u=rw,g=r,o=r
|
||||||
|
|
||||||
- name: Deploy SearXNG with Docker Compose
|
- name: Deploy SearXNG with Docker Compose
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
project_name: searxng
|
project_name: searxng
|
||||||
|
|
3
roles/docker_services/templates/limiter.toml.j2
Normal file
3
roles/docker_services/templates/limiter.toml.j2
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# vim: ft=toml
|
||||||
|
[botdetection.ip_limit]
|
||||||
|
link_token = true
|
Reference in a new issue