feat(searxng): added new role to install and configure searxng
This commit is contained in:
parent
768a8133b5
commit
63eab11b85
19 changed files with 923 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
[real_ip]
|
||||
ipv4_prefix = {{ searxng_limiter_realip_ipv4_prefix | default(32, True) }}
|
||||
ipv6_prefix = {{ searxng_limiter_realip_ipv6_prefix | default(64, True) }}
|
||||
|
||||
[botdetection.ip_limit]
|
||||
link_token = true
|
||||
|
||||
[botdetection.ip_lists]
|
||||
{% set datalist = [] -%}
|
||||
{%- for item in (searxng_limiter_botdetection_block_ip | default([])) -%}
|
||||
{{- datalist.append("'{}'".format(item)) if item -}}
|
||||
{%- endfor %}
|
||||
block_ip = [
|
||||
{{ datalist | join(', ') | wordwrap(60, wrapstring="\n\t", break_long_words=False) }}
|
||||
]
|
||||
|
||||
{% set datalist = [] -%}
|
||||
{%- for item in (searxng_limiter_botdetection_pass_ip | default([])) -%}
|
||||
{{- datalist.append("'{}'".format(item)) if item -}}
|
||||
{%- endfor %}
|
||||
pass_ip = [
|
||||
{{ datalist | join(', ') | wordwrap(60, wrapstring="\n\t", break_long_words=False) }}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue