| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | [uwsgi]# Who will run the codeuid = searxnggid = searxng# Number of workers (usually CPU count)workers = 4# The right granted on the created socketchmod-socket = 666# Plugin to use and interpretor configsingle-interpreter = truemaster = trueplugin = python3lazy-apps = trueenable-threads = true# Module to importmodule = searx.webapp# Virtualenv and python pathpythonpath = /usr/local/searxng/chdir = /usr/local/searxng/searx/# Disable logging for privacydisable-logging=True# But keep errors for 2 daystouch-logrotate = /run/uwsgi-logrotateunique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate  }log-backupname = /var/log/uwsgi/uwsgi.log.1logto = /var/log/uwsgi/uwsgi.log# No keep alive# See https://github.com/searx/searx-docker/issues/24add-header = Connection: close# uwsgi serves the static files# expires set to one day as Flask doesstatic-map = /static=/usr/local/searxng/searx/staticstatic-expires = /* 864000static-gzip-all = Trueoffload-threads = %k# Cachecache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
 |