From a6bebc30ac5ef2cbf7fcddbb62675dcdef471c88 Mon Sep 17 00:00:00 2001 From: Karl F Date: Thu, 6 Jun 2024 10:30:05 +0200 Subject: [PATCH] Include missing uwsgi.ini --- .gitignore | 2 +- searxng/uwsgi.ini | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 searxng/uwsgi.ini diff --git a/.gitignore b/.gitignore index d44b70f2..c2acd010 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ searxng-docker.service caddy srv -searxng/uwsgi.ini +# searxng/uwsgi.ini diff --git a/searxng/uwsgi.ini b/searxng/uwsgi.ini new file mode 100644 index 00000000..298096e3 --- /dev/null +++ b/searxng/uwsgi.ini @@ -0,0 +1,49 @@ +[uwsgi] +# Who will run the code +uid = searxng +gid = searxng + +# Number of workers (usually CPU count) +workers = %k +threads = 4 + +# The right granted on the created socket +chmod-socket = 666 + +# 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 +# expires set to one year since there are hashes +static-map = /static=/usr/local/searxng/searx/static +static-expires = /* 31557600 +static-gzip-all = True +offload-threads = 4 + +# Cache +cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1