From f68e58bbb14b747d11ef08869aeb64b4504d2712 Mon Sep 17 00:00:00 2001 From: xyz Date: Mon, 8 Nov 2021 22:58:31 -0800 Subject: searx.ini, change workers to 1, to reduce memory usage --- etc/uwsgi/searx.ini | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 etc/uwsgi/searx.ini (limited to 'etc/uwsgi') diff --git a/etc/uwsgi/searx.ini b/etc/uwsgi/searx.ini new file mode 100644 index 00000000..148c84ba --- /dev/null +++ b/etc/uwsgi/searx.ini @@ -0,0 +1,36 @@ +[uwsgi] +http-socket = :8888 + +# Who will run the code +uid = searx +gid = searx + +# disable logging for privacy +disable-logging = false + +# Number of workers (usually CPU count) +workers = 1 + +# The right granted on the created socket +chmod-socket = 666 + +# Plugin to use and interpretor config +single-interpreter = true +master = true +plugin = python +lazy-apps = true +enable-threads = true + +# Settings path for AUR package +env = SEARX_SETTINGS_PATH=/etc/searx/settings.yml + +# Module to import +module = searx.webapp + +# Virtualenv and python path +#virtualenv = /usr/local/searx/searx-ve/ +#pythonpath = /usr/local/searx/ +#chdir = /usr/local/searx/searx/ + +# Cache: https://uwsgi-docs.readthedocs.io/en/latest/Caching.html +cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1 -- cgit v1.2.3-70-g09d2