diff options
| author | xyz <gky44px1999@gmail.com> | 2021-11-08 22:58:31 -0800 | 
|---|---|---|
| committer | xyz <gky44px1999@gmail.com> | 2021-11-08 22:58:31 -0800 | 
| commit | f68e58bbb14b747d11ef08869aeb64b4504d2712 (patch) | |
| tree | dcc028af3e1a00eb4c7799d5cea75f01efcedab6 /etc | |
| parent | e00f517d03f234b39274f01604fd06cdb40381fe (diff) | |
searx.ini, change workers to 1, to reduce memory usage
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/uwsgi/searx.ini | 36 | 
1 files changed, 36 insertions, 0 deletions
| 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
 | 
