on master help sign in
searx/dockerfiles/uwsgi.ini
47 lines 1.1 kB history raw
1[uwsgi]
2# Who will run the code
3uid = searx
4gid = searx
6# Number of workers (usually CPU count)
7workers = 4
9# The right granted on the created socket
10chmod-socket = 666
12# Plugin to use and interpretor config
13single-interpreter = true
14master = true
15plugin = python3
16lazy-apps = true
17enable-threads = true
19# Module to import
20module = searx.webapp
22# Virtualenv and python path
23pythonpath = /usr/local/searx/
24chdir = /usr/local/searx/searx/
26# Disable logging for privacy
27disable-logging=True
29# But keep errors for 2 days
30touch-logrotate = /run/uwsgi-logrotate
31unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
32log-backupname = /var/log/uwsgi/uwsgi.log.1
33logto = /var/log/uwsgi/uwsgi.log
35# No keep alive
36# See https://github.com/searx/searx-docker/issues/24
37add-header = Connection: close
39# uwsgi serves the static files
40# expires set to one day as Flask does
41static-map = /static=/usr/local/searx/searx/static
42static-expires = /* 864000
43static-gzip-all = True
44offload-threads = %k
46# Cache
47cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1