**Add new test script, agent modifications, and SearXNG integration updates**

This commit is contained in:
geoffsee
2025-05-27 19:10:33 -04:00
parent bb99e652f9
commit 29f70146d2
24 changed files with 2538 additions and 38 deletions

1
searxng/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea

7
searxng/README.md Normal file
View File

@@ -0,0 +1,7 @@
# SearXNG
SearXNG is a free internet metasearch engine which aggregates results from up to 246 search services.
[See Documentation](https://docs.searxng.org)
**Default credentials:**
admin:777b930e

1
searxng/auth-file Normal file
View File

@@ -0,0 +1 @@
admin:XRo6tXfiAEXFk

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# will prompt for a new password, default is 777b930e
htpasswd -d ./auth-file admin

View File

@@ -0,0 +1,15 @@
FROM searxng/searxng:2025.3.31-08885d061
RUN mkdir -p /etc/searxng
RUN apk upgrade && apk add uwsgi-router_basicauth
COPY settings.yml /etc/searxng/settings.yml
COPY uwsgi.ini /etc/searxng/uwsgi.ini
COPY auth-file /etc/searxng/auth-file
ENV INSTANCE_NAME=searxng \
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml \
UWSGI_SETTINGS_PATH=/etc/searxng/uwsgi.ini
CMD ["python3", "-m", "searxng"]

2350
searxng/settings.yml Normal file

File diff suppressed because it is too large Load Diff

53
searxng/uwsgi.ini Normal file
View File

@@ -0,0 +1,53 @@
[uwsgi]
# Who will run the code
uid = searxng
gid = searxng
# Number of workers (usually CPU count)
# default value: %k (= number of CPU core, see Dockerfile)
workers = 1
# Number of threads per worker
# default value: 4 (see Dockerfile)
threads = 4
chmod-socket = 660
# Plugin to use and interpreter config
single-interpreter = true
master = true
plugin = python3
lazy-apps = true
enable-threads = 4
# Module to import
module = searx.webapp
# Virtualenv and python path
pythonpath = /usr/local/searxng/
chdir = /usr/local/searxng/searx/
# automatically set processes name to something meaningful
auto-procname = true
# Disable request logging for privacy
disable-logging = true
log-5xx = true
# Set the max size of a request (request-body excluded)
buffer-size = 8192
# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close
# uwsgi serves the static files
static-map = /static=/usr/local/searxng/searx/static
# expires set to one day
static-expires = /* 86400
static-gzip-all = True
offload-threads = 1
# Basic auth
plugins = router_basicauth
route = .* basicauth:Searxng Console,auth-file