diff options
| author | Alexandre Flament <alex@al-f.net> | 2019-07-16 11:03:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-16 11:03:52 +0200 |
| commit | 4d38b8bef7de16f741d20839ee5d31a48d499f81 (patch) | |
| tree | 3ad42e60342e90d577c1f83c5e726665163a4a7d /dockerfiles/uwsgi.ini | |
| parent | 3b8b862d8c31e8e55f2fc6e0de74a0fcbb899c76 (diff) | |
| parent | f750df871318c435c40c7d910e5dcd47b350e73d (diff) | |
Merge branch 'master' into bang_fixes
Diffstat (limited to 'dockerfiles/uwsgi.ini')
| -rw-r--r-- | dockerfiles/uwsgi.ini | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini new file mode 100644 index 000000000..fa2fd6302 --- /dev/null +++ b/dockerfiles/uwsgi.ini @@ -0,0 +1,33 @@ +[uwsgi] +# Who will run the code +uid = searx +gid = searx + +# Number of workers (usually CPU count) +workers = 4 + +# 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 +pythonpath = /usr/local/searx/ +chdir = /usr/local/searx/searx/ + +# Disable logging for privacy +disable-logging=True + +# But keep errors for 2 days +touch-logrotate = /run/uwsgi-logrotate +unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate } +log-backupname = /var/log/uwsgi/uwsgi.log.1 +logto = /var/log/uwsgi/uwsgi.log |