2019-06-29 11:59:13 +02:00
|
|
|
[uwsgi]
|
|
|
|
# Who will run the code
|
2021-10-02 16:10:13 +02:00
|
|
|
uid = searxng
|
|
|
|
gid = searxng
|
2019-06-29 11:59:13 +02:00
|
|
|
|
|
|
|
# Number of workers (usually CPU count)
|
2021-12-28 20:13:13 +01:00
|
|
|
workers = %k
|
|
|
|
threads = 4
|
2019-06-29 11:59:13 +02:00
|
|
|
|
|
|
|
# The right granted on the created socket
|
|
|
|
chmod-socket = 666
|
|
|
|
|
|
|
|
# Plugin to use and interpretor config
|
|
|
|
single-interpreter = true
|
|
|
|
master = true
|
|
|
|
plugin = python3
|
|
|
|
lazy-apps = true
|
|
|
|
enable-threads = true
|
|
|
|
|
|
|
|
# Module to import
|
|
|
|
module = searx.webapp
|
|
|
|
|
|
|
|
# Virtualenv and python path
|
2021-10-02 16:10:13 +02:00
|
|
|
pythonpath = /usr/local/searxng/
|
|
|
|
chdir = /usr/local/searxng/searx/
|
2019-06-29 11:59:13 +02:00
|
|
|
|
2021-12-28 20:13:13 +01:00
|
|
|
# automatically set processes name to something meaningful
|
|
|
|
auto-procname = true
|
|
|
|
|
2022-03-19 12:27:46 +01:00
|
|
|
# Disable request logging for privacy
|
2021-12-28 20:13:13 +01:00
|
|
|
disable-logging = true
|
2022-03-19 12:27:46 +01:00
|
|
|
log-5xx = true
|
2021-12-28 20:13:13 +01:00
|
|
|
|
|
|
|
# Set the max size of a request (request-body excluded)
|
|
|
|
buffer-size = 8192
|
2019-06-29 11:59:13 +02:00
|
|
|
|
2020-02-07 19:16:15 +01:00
|
|
|
# No keep alive
|
|
|
|
# See https://github.com/searx/searx-docker/issues/24
|
|
|
|
add-header = Connection: close
|
2020-02-25 17:25:11 +01:00
|
|
|
|
|
|
|
# uwsgi serves the static files
|
2022-02-28 21:41:33 +01:00
|
|
|
# expires set to one year since there are hashes
|
2021-10-02 16:10:13 +02:00
|
|
|
static-map = /static=/usr/local/searxng/searx/static
|
2022-02-28 21:41:33 +01:00
|
|
|
static-expires = /* 31557600
|
2020-02-25 17:25:11 +01:00
|
|
|
static-gzip-all = True
|
|
|
|
offload-threads = %k
|
2021-01-05 11:22:48 +01:00
|
|
|
|
|
|
|
# Cache
|
2021-10-02 16:10:13 +02:00
|
|
|
cache2 = name=searxngcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
|