feat(searxng): added new role to install and configure searxng

This commit is contained in:
NaeiKinDus 2025-05-23 00:00:00 +00:00
parent 768a8133b5
commit 63eab11b85
Signed by: WoodSmellParticle
GPG key ID: 8E52ADFF7CA8AE56
19 changed files with 923 additions and 0 deletions

View file

@ -103,5 +103,9 @@
ansible.builtin.include_role:
name: nullified.infrastructure.valkey
tasks_from: main.yml
- name: Testing SearxNG role
ansible.builtin.include_role:
name: nullified.infrastructure.searxng
tasks_from: main.yml
- meta: flush_handlers

View file

@ -12,3 +12,26 @@ external_provisioner_source_ips:
- '198.18.0.0/15'
security_sysctl_configuration:
'vm.overcommit_memory': 1
searxng_conf_redis_url: "rediss://127.0.0.1:6379?ssl_cert_reqs=none"
searxng_limiter_botdetection_pass_ip:
- '172.16.0.0/12'
- '192.168.0.0/16'
nginx_sites:
- name: searxng
content: |-
server {
listen 80;
location / {
uwsgi_pass unix:///run/uwsgi/searxng.socket;
include uwsgi_params;
uwsgi_param HTTP_HOST $host;
uwsgi_param HTTP_CONNECTION $http_connection;
uwsgi_param HTTP_X_SCHEME $scheme;
uwsgi_param HTTP_X_REAL_IP $remote_addr;
uwsgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
}
}